# HG changeset patch # User thomask # Date 1126089275 0 # Node ID ce232883eab5c508927356687bc59827344a1682 # Parent fcca833f91c355b8934c10441533fc635d1afbda Bastiaan Veelo 2005-09-04 news:dffjik$2p30$1@digitaldaemon.com diff -r fcca833f91c3 -r ce232883eab5 run/a/associative_array_18_A.d --- /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 +// @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; +} diff -r fcca833f91c3 -r ce232883eab5 run/a/associative_array_18_B.d --- /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 +// @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; +} diff -r fcca833f91c3 -r ce232883eab5 run/a/associative_array_18_C.d --- /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 +// @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; +} diff -r fcca833f91c3 -r ce232883eab5 run/a/associative_array_18_D.d --- /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 +// @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; +}