view run/a/associative_array_18_A.d @ 652:ce232883eab5

Bastiaan Veelo <Bastiaan.N.Veelo@ntnu.no> 2005-09-04 news:dffjik$2p30$1@digitaldaemon.com
author thomask
date Wed, 07 Sep 2005 10:34:35 +0000
parents
children 03b5056496f1
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_A;

interface Interface{
	int test(int);
}

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

int main(){
	Class[Interface] aa;

	Class o = new Class();

	aa[o] = o;

	return 0; 
}