view run/opCast_02.d @ 1:3414705c41ac

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


// @author@	Carlos Santander B. <carlos8294@msn.com>
// @author@	2004-09-18

class Parent{
	void test(int i){
	}

	int opCast(){
		return 0;
	}
}

class Child : Parent{
}

int main(){
	(new Child).test=2;
	return 0;
}