# HG changeset patch # User thomask # Date 1143978830 0 # Node ID eb7e3f644b188fbe026fa6ff3db6ce77086e0381 # Parent 807744a6e42bccebc3bab33e876385c9ba394fa6 Stewart Gordon 2006-03-27 news:e08emq$n8l$1@digitaldaemon.com diff -r 807744a6e42b -r eb7e3f644b18 compile/o/overload_17_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/overload_17_B.d Sun Apr 02 11:53:50 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +module /*dstress.*/compile.o.overload_17_B; +import /*dstress.*/compile.o.overload_17_C; + +class Parent { + Parent test() { + return new Parent(); + } +} + +class Son : Parent { + override Daughter test() { + return new Daughter(); + } +} diff -r 807744a6e42b -r eb7e3f644b18 compile/o/overload_17_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/overload_17_C.d Sun Apr 02 11:53:50 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +module /*dstress.*/compile.o.overload_17_C; +import /*dstress.*/compile.o.overload_17_B; + +class Daughter : Parent { + override Son test() { + return new Son(); + } +} diff -r 807744a6e42b -r eb7e3f644b18 undefined/typedef_10_A.d --- a/undefined/typedef_10_A.d Sun Apr 02 11:53:42 2006 +0000 +++ b/undefined/typedef_10_A.d Sun Apr 02 11:53:50 2006 +0000 @@ -21,4 +21,6 @@ Int2 i2; static assert (is(typeof(i1 + i2) == int)); + + return 0; } diff -r 807744a6e42b -r eb7e3f644b18 undefined/typedef_10_B.d --- a/undefined/typedef_10_B.d Sun Apr 02 11:53:42 2006 +0000 +++ b/undefined/typedef_10_B.d Sun Apr 02 11:53:50 2006 +0000 @@ -19,4 +19,6 @@ int i2; static assert (is(typeof(i1 + i2) == int)); + + return 0; } diff -r 807744a6e42b -r eb7e3f644b18 undefined/typedef_10_C.d --- a/undefined/typedef_10_C.d Sun Apr 02 11:53:42 2006 +0000 +++ b/undefined/typedef_10_C.d Sun Apr 02 11:53:50 2006 +0000 @@ -19,4 +19,6 @@ Int2 i2; static assert (is(typeof(i1 + i2) == int)); + + return 0; } diff -r 807744a6e42b -r eb7e3f644b18 undefined/typedef_10_D.d --- a/undefined/typedef_10_D.d Sun Apr 02 11:53:42 2006 +0000 +++ b/undefined/typedef_10_D.d Sun Apr 02 11:53:50 2006 +0000 @@ -19,4 +19,6 @@ Int1 i1; static assert (is(typeof(i1 + 42) == int)); + + return 0; } diff -r 807744a6e42b -r eb7e3f644b18 undefined/typedef_10_E.d --- a/undefined/typedef_10_E.d Sun Apr 02 11:53:42 2006 +0000 +++ b/undefined/typedef_10_E.d Sun Apr 02 11:53:50 2006 +0000 @@ -18,4 +18,6 @@ Int2 i2; static assert (is(typeof(42 + i2) == int)); + + return 0; } diff -r 807744a6e42b -r eb7e3f644b18 undefined/typedef_10_F.d --- a/undefined/typedef_10_F.d Sun Apr 02 11:53:42 2006 +0000 +++ b/undefined/typedef_10_F.d Sun Apr 02 11:53:50 2006 +0000 @@ -15,4 +15,6 @@ long l; static assert (is(typeof(i + l) == long)); + + return 0; } diff -r 807744a6e42b -r eb7e3f644b18 undefined/typedef_10_G.d --- a/undefined/typedef_10_G.d Sun Apr 02 11:53:42 2006 +0000 +++ b/undefined/typedef_10_G.d Sun Apr 02 11:53:50 2006 +0000 @@ -19,4 +19,6 @@ Int i; static assert (is(typeof(l + i) == long)); + + return 0; } diff -r 807744a6e42b -r eb7e3f644b18 undefined/typedef_10_H.d --- a/undefined/typedef_10_H.d Sun Apr 02 11:53:42 2006 +0000 +++ b/undefined/typedef_10_H.d Sun Apr 02 11:53:50 2006 +0000 @@ -18,5 +18,7 @@ Int i; short s; - static assert (is(typeof(i + s) == long)); + static assert (is(typeof(i + s) == int)); + + return 0; } diff -r 807744a6e42b -r eb7e3f644b18 undefined/typedef_10_I.d --- a/undefined/typedef_10_I.d Sun Apr 02 11:53:42 2006 +0000 +++ b/undefined/typedef_10_I.d Sun Apr 02 11:53:50 2006 +0000 @@ -19,4 +19,6 @@ Int i; static assert (is(typeof(s + i) == int)); + + return 0; }