view run/m/mixin_24_D.d @ 1131:0e2d92ff0643

[Issue 343] New: Compile error using mixin containing struct Sean Kelly <sean@f4.ca> 2006-09-11 news:bug-343-3@http.d.puremagic.com/issues/
author thomask
date Wed, 13 Sep 2006 22:27:16 +0000
parents
children daef239f37cf
line wrap: on
line source

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

// @author@	Sean Kelly <sean@f4.ca>
// @date@	2006-09-11
// @uri@	news:bug-343-3@http.d.puremagic.com/issues/
// @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;
}