view run/s/super_15_C.d @ 1615:8d5c55d163fd

Fix some outdated tests that used auto to mean scope.
author Christian Kamm <kamm incasoftware de>
date Sun, 12 Jul 2009 16:44:52 +0200
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;
}