view run/m/mixin_24_D.d @ 1562:539ede0215a4

r8715@birke: tk | 2007-09-29 23:52:45 +0200 [Issue 1534] Can't mix in a case statement. <aziz.kerim@gmail.com> 2007-09-26 http://d.puremagic.com/issues/show_bug.cgi?id=1534
author thomask
date Sun, 30 Sep 2007 09:44:14 +0000
parents daef239f37cf
children
line wrap: on
line source

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

// @author@	Sean Kelly <sean@f4.ca>
// @date@	2006-09-11
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=343
// @desc@	[Issue 343] New: Compile error using mixin containing struct

module dstress.run.m.mixin_24_D;

struct S{
	int i;
}

template T(){
	S s = void;
}

int main(){
	mixin T!();

	s.i = 1;
	if(s.i != 1){
		assert(0);
	}
	return 0;
}