view run/t/this_13_C.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents 23834ba9736a
children
line wrap: on
line source

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

// @author@	Frank Benoit <benoit@tionex.de>
// @date@	2006-10-09
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=419
// @desc@	[Issue 419] New: Anonymous classes are not working.

module dstress.run.t.this_13_C;

interface I {
	void get( char[] s );
}

class C{
	void init(){
		I i = new class() I {
			void get( char[] s ){
				func();
			}
		};
	}
	void func( ){ }
}

int main(){
	C c = new C();
	c.init();

	return 0;
}