view run/m/mixin_14_B.d @ 1091:9dcac8d4e97f

post DMD-0.163 review
author thomask
date Fri, 21 Jul 2006 11:15:26 +0000
parents 00901fbe5d03
children b8c0195059d9
line wrap: on
line source

// $HeadULR$
// $Date$
// $Author$

// @author@	ElfQT <dethjunk@yahoo.com>
// @date@	2005-09-03
// @uri@	news:dfd6f0$oit$1@digitaldaemon.com

module dstress.run.m.mixin_14_B;

int main(){
	int arg = 1;
	mixin Template!();

	assert(Class.foo(arg) == 1);
	assert(test() == 2);

	return 0;
}

template Template(){
	int arg = 2;

	int test(){
		return Class.foo(arg);
	}
}

class Class{
	static int foo(int i){
		return i;
	}
}