changeset 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 fcca833f91c3
children 41866371baae
files run/a/associative_array_18_A.d run/a/associative_array_18_B.d run/a/associative_array_18_C.d run/a/associative_array_18_D.d
diffstat 4 files changed, 116 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/a/associative_array_18_A.d	Wed Sep 07 10:34:35 2005 +0000
@@ -0,0 +1,29 @@
+// $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; 
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/a/associative_array_18_B.d	Wed Sep 07 10:34:35 2005 +0000
@@ -0,0 +1,29 @@
+// $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_B;
+
+interface Interface{
+	int test(int);
+}
+
+class Class : Interface{
+	int test(int i){
+		return i+1;
+	}
+}
+
+int main(){
+	Interface[Interface] aa;
+
+	Class o = new Class();
+
+	aa[o] = o;
+
+	return 0; 
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/a/associative_array_18_C.d	Wed Sep 07 10:34:35 2005 +0000
@@ -0,0 +1,29 @@
+// $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_C;
+
+interface Interface{
+	int test(int);
+}
+
+class Class : Interface{
+	int test(int i){
+		return i+1;
+	}
+}
+
+int main(){
+	Interface[Class] aa;
+
+	Class o = new Class();
+
+	aa[o] = o;
+
+	return 0; 
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/a/associative_array_18_D.d	Wed Sep 07 10:34:35 2005 +0000
@@ -0,0 +1,29 @@
+// $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; 
+}