[Issue 571] New: class instance member template returns strange value
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 18 23:39:17 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=571
Summary: class instance member template returns strange value
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: lovesyao at hotmail.com
class Test{
template test(){
const int test=1;
}
}
void main(){
assert(Test.test!()==1);//ok
assert((new Test).test!()==1);//failed
}
--
More information about the Digitalmars-d-bugs
mailing list