view run/a/associative_array_18_A.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 03b5056496f1
children
line wrap: on
line source

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

// @author@	Bastiaan Veelo <Bastiaan.N.Veelo@ntnu.no>
// @date@	2005-09-04
// @uri@	http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4931

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;
}