[Issue 6061] New: cannot implicitly convert expression (test1) of type Test1() to Test1
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 26 20:21:28 PDT 2011
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: nobody at puremagic.com
ReportedBy: changlon at gmail.com
--- Comment #0 from changlon <changlon at 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: -------
More information about the Digitalmars-d-bugs
mailing list