view run/overload_18.d @ 1383:52c9e86b6486

@url@ -> @uri@
author thomask
date Sun, 04 Mar 2007 13:07:35 +0000
parents 8e103eba0fb4
children d3a3e0c251d8
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
// @uri@	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;
}