view run/s/super_15_C.d @ 1604:cc724d521a34

Add note about possible issues with test case depending on switch scopes.
author Christian Kamm <kamm incasoftware de>
date Sat, 28 Mar 2009 19:17:58 +0100
parents 5530980c0d49
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Frank Benoit <benoit@tionex.de>
// @date@	2007-04-30
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1203
// @desc@	[Issue 1203] Cannot create Anonclass in loop

module dstress.run.s.super_15_C;

class C {
	this(){
	}
}

int main(char[][] args){
	foreach(char[] arg; args){
		auto c = new class(arg) C {
				this(char[] arg){
					super();
				}
			};
		assert(c);
	}

	return 0;
}