view run/abstract_07.d @ 311:35a1df98caf1

updated abstract tests to dmd-118
author thomask
date Wed, 16 Mar 2005 11:09:23 +0000
parents
children 52c9e86b6486
line wrap: on
line source

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

// @author@	Stewart Gordon
// @date@	2004-09-24
// @uri@	news:cj0qf6$2u2v$1@digitaldaemon.com
// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/1940

module dstress.run.abstract_07;

abstract class A{
	int test(){
		return 3;
	}
}

class B : A{
}

int main(){
	A a = new B();
	assert(a.test()==3);
	return 0;
}