view run/super_04.d @ 1:3414705c41ac

removed CVS header
author thomask
date Sun, 26 Sep 2004 12:06:09 +0000
parents 3269e4627918
children f87ba6507260
line wrap: on
line source


// @author@	J Anderson <REMOVEanderson@badmama.com.au>
// @date@	2004-05-23

template MyTemplate(Type){
	this(){
		super.test();
	}
}

class Parent{
	int test(){
		return 2;
	}
}

class Child : Parent{
	mixin MyTemplate!(Child);
}

int main(){
	Child c = new Child();
	return 0;
}