view run/interface_05.d @ 1383:52c9e86b6486

@url@ -> @uri@
author thomask
date Sun, 04 Mar 2007 13:07:35 +0000
parents 55a2c755d699
children 6e4063f99377
line wrap: on
line source

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

// @author@	Stewart Gordon <smjg_1998@yahoo.com>
// @date@	2004-09-01
// @uri@	news:ch44sj$211s$2@digitaldaemon.com
// @uri@	nntp://digitalmars.com/digitalmars.D.bugs/1726

module dstress.run.interface_05;

int status;

class Parent{
}

interface MyInterface{
	MyInterface test();
}

class Child : Parent, MyInterface{
	Child test(){
		status++;
		return null;
	}
}

int main(){
	Child bro = new Child();
	assert(status==0);
	Child sis = bro.test();
	assert(status==1);
	return 0;
}