view run/b/bug_template_2851_B.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents 2203e9c5850e
children
line wrap: on
line source

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

// @author@	Max Samuha <maxter@i.com.ua>
// @date@	2007-02-16
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=969
// @desc@	[Issue 969] 'this' needed for class member

module dstress.run.b.bug_template_2851_B;

void bar(alias T)(){
	assert(3 == T);
}

class Test{
	int a;
	mixin bar!(a);
}

int main(){
	Test t = new Test();
	t.a = 3;
	t.bar();
	return 0;
}