view run/n/nested_class_01_E.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 5e4bd0277f63
children
line wrap: on
line source

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

module dstress.run.n.nested_class_01_E;

class Outer{
	static int m=2;

	static class Inner{
		int test(){
			return m;
		}
	}

	Inner inner;

	this(){
		inner = new Inner();
	}
}

int main(){
	Outer o = new Outer();
	assert(o.m == o.inner.test());
	return 0;
}