http://d.puremagic.com/issues/show_bug.cgi?id=6061
Summary: cannot implicitly convert expression (test1) of type Test1() to Test1 Product: D Version: D1 & D2 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: chang...@gmail.com --- Comment #0 from changlon <chang...@gmail.com> 2011-05-26 20:17:10 PDT --- 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) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------