← Back to index
|
Original Bugzilla link
Bug 6061 – cannot implicitly convert expression (test1) of type Test1() to Test1
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
All
Creation time
2011-05-26T20:17:10Z
Last change time
2018-01-09T07:20:58Z
Assigned to
No Owner
Creator
changlon
Comments
Comment #0
by changlon — 2011-05-26T20:17:10Z
struct Test1{ int i ; } Test1 test1(char[] T)(){ return Test1.init ; } static const Test1 my_test1 = test1!("123") ; void main(){} ----------------------------------------------- t1.d(7): Error: template instance test1!("123") does not match template declaration test1(char[] T)
Comment #1
by changlon — 2011-05-26T20:18:32Z
Sorry , It is a dmd1 bug, the error message is : t1.d(8): Error: cannot implicitly convert expression (test1) of type Test1() to Test1
Comment #2
by changlon — 2018-01-09T07:20:58Z
no one use it dmd1 anymore.