[Issue 1203] New: Cannot create Anonclass in loop
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 30 06:27:15 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1203
Summary: Cannot create Anonclass in loop
Product: D
Version: 1.014
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: benoit at tionex.de
class C {
public this(){
}
}
interface I {
void fnc();
}
void main(){
char[][] t;
foreach( char[] c; t ){
new class( c ) C, I {
public this( char[] c ){
super();
}
void fnc(){
}
};
}
}
Error: constructor calls not allowed in loops or after labels
--
More information about the Digitalmars-d-bugs
mailing list