view run/f/forward_reference_12_B.d @ 1472:22767ec83a24

[Issue 932] static foreach in second template instantiation uses wrong tupleof Frits van Bommel <fvbommel@wxs.nl> 2007-02-06 http://d.puremagic.com/issues/show_bug.cgi?id=932
author thomask
date Thu, 05 Apr 2007 16:36:53 +0000
parents 65be5fcebc6b
children b8c0195059d9
line wrap: on
line source

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

// @author@	Stewart Gordon <smjg_1998@yahoo.com>
// @date@	2005-05-31
// @uri@	news:d7hfbd$1dtf$2@digitaldaemon.com
// @desc@	nested types can't be forward referenced

module dstress.run.f.forward_reference_12_B;

struct Test{
	Outer.Inner s;
}

struct Outer{
	struct Inner{
		int i;
	}
}

int main(){
	Test t;
	assert(t.s.i==0);
	return 0;
}