view run/overload_18.d @ 1330:f3f715978184

Georg Wrede <georg@iki.fi> 2007-01-07 mail:45A120F5.1050108@iki.fi
author thomask
date Sat, 13 Jan 2007 10:33:49 +0000
parents 8e103eba0fb4
children 52c9e86b6486
line wrap: on
line source

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

// @author@	Stewart Gordon <smjg_1998@yahoo.com>
// @date@	2005-02-11
// @uri@	news:cui1u9$1kl1$1@digitaldaemon.com
// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/2943

module dstress.run.overload_18;

class Parent {
	Parent check(){
		return new Parent;
	}
}

class Sister : Parent {
	Sister check(){
    		return new Sister();
	}
}


int main(){
	Parent p = (new Sister()).check();
	return 0;
}