view run/interface_05.d @ 70:5f98d4a33d49

1) review of all test cases with unexpected results (except encoding and html/xml) 2) updated todo
author thomask
date Sat, 23 Oct 2004 22:47:47 +0000
parents de27ca625bf7
children a33ad7189d21
line wrap: on
line source

// @author@	Steward Gordon <smjg_1998@yahoo.com>
// @date@	2004-09-01
// @uri@	news://ch44sj$211s$2@digitaldaemon.com
// @url@	nttp://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;
}