comparison run/s/super_15_B.d @ 1538:5530980c0d49

[Issue 1203] Cannot create Anonclass in loop Frank Benoit <benoit@tionex.de> 2007-04-30 http://d.puremagic.com/issues/show_bug.cgi?id=1203
author thomask
date Mon, 07 May 2007 05:21:43 +0000
parents
children
comparison
equal deleted inserted replaced
1537:457db9394771 1538:5530980c0d49
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ Frank Benoit <benoit@tionex.de>
6 // @date@ 2007-04-30
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1203
8 // @desc@ [Issue 1203] Cannot create Anonclass in loop
9
10 module dstress.run.s.super_15_B;
11
12 class C {
13 this(){
14 }
15 }
16
17 int main(char[][] args){
18 foreach(char[] arg; args){
19 auto c = new class(arg) C {
20 this(char[] arg){
21 }
22 };
23 assert(c);
24 }
25
26 return 0;
27 }