view run/b/bug_e2ir_736_D.d @ 1038:c35b15527bc1

"Internal error: e2ir.c 736" on valid code <h3r3tic@mat.uni.torun.pl> 2006-06-01 news:bug-172-3@http.d.puremagic.com/bugzilla/
author thomask
date Fri, 02 Jun 2006 16:56:21 +0000
parents
children 81222734adf3
line wrap: on
line source

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

// @author@	<h3r3tic@mat.uni.torun.pl>
// @date@	2006-06-01
// @uri@	news:bug-172-3@http.d.puremagic.com/bugzilla/

module dstress.run.b.bug_e2ir_736_D;

int status;

template Foo(){
	template T(){
		int func() {
			return status;
		}
	}
}

class Baz{
	mixin Foo bar;
}

int main() {
	status = 3;
	if(Baz.bar.T!().func() != 3){
		assert(0);
	}

	return 0;
}