[Issue 446] New: Anonymous class and "return without calling constructor"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 23 14:51:19 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=446
Summary: Anonymous class and "return without calling constructor"
Product: D
Version: 0.172
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: benoit at tionex.de
class CBase {
this(){
}
}
void func2( CBase l ){
}
void main(){
if( 1 ){
func2( new class() CBase {
this(){
super();
}
});
}
return; // line 18
}
main.d(18): return without calling constructor
--
More information about the Digitalmars-d-bugs
mailing list