view run/a/associative_array_18_D.d @ 1089:03b5056496f1

pre DMD-0.163 review
author thomask
date Wed, 19 Jul 2006 21:00:13 +0000
parents ce232883eab5
children b8c0195059d9
line wrap: on
line source

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

// @author@	Bastiaan Veelo <Bastiaan.N.Veelo@ntnu.no>
// @date@	2005-09-04
// @uri@	news:dffjik$2p30$1@digitaldaemon.com

module dstress.run.a.associative_array_18_D;

interface Interface{
	int test(int);
}

class Class : Interface{
	int test(int i){
		return i+1;
	}
}

int main(){
	Class[Class] aa;

	Class o = new Class();

	aa[o] = o;

	return 0;
}