view run/f/forward_reference_17_A.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 36032afb4652
children
line wrap: on
line source

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

// @author@	Georg Ramme <georg.ramme@gmail.com>
// @date@	2007-01-19
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=858
// @desc@	[Issue 858] Forward reference to struct inside class crashes the compiler

module dstress.run.f.forward_reference_17_A;

class Outer{
	this(){
		Inner i = new Inner();
	}

	class Inner{
		Strct str;
	}
}

struct Strct{
	int i;
}

int main(){
	Outer o = new Outer();
	return 0;
}