# HG changeset patch # User thomask # Date 1119602385 0 # Node ID 66f476bc896322ce6e57c8c583f3eb836ddcd676 # Parent ec6e79d16356c671e3a3fe919fb19385abcbefeb undefined contracts for abstract functions diff -r ec6e79d16356 -r 66f476bc8963 nocompile/abstract_01.d --- a/nocompile/abstract_01.d Fri Jun 24 08:28:49 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Stewart Gordon -// @date@ 2004-09-24 -// @uri@ news:cj0qf6$2u2v$1@digitaldaemon.com -// @url@ nntp://digitalmars.com/digitalmars.D.bugs/1940 - -module dstress.compile.abstract_01; - -int status; - -abstract class MyAbstractClass{ - abstract int test() - in{ - status++; - }; -} diff -r ec6e79d16356 -r 66f476bc8963 nocompile/abstract_02.d --- a/nocompile/abstract_02.d Fri Jun 24 08:28:49 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Stewart Gordon -// @date@ 2004-09-24 -// @uri@ news:cj0qf6$2u2v$1@digitaldaemon.com -// @url@ nntp://digitalmars.com/digitalmars.D.bugs/1940 - -module dstress.compile.abstract_02; - -int status; - -abstract class MyAbstractClass{ - abstract int test() - out{ - status++; - }; -} diff -r ec6e79d16356 -r 66f476bc8963 nocompile/abstract_03.d --- a/nocompile/abstract_03.d Fri Jun 24 08:28:49 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Stewart Gordon -// @date@ 2004-09-24 -// @uri@ news:cj0qf6$2u2v$1@digitaldaemon.com -// @url@ nntp://digitalmars.com/digitalmars.D.bugs/1940 - -module dstress.compile.abstract_03; - -int status; - -abstract interface MyInterface{ - abstract int test() - out{ - status++; - }; -} diff -r ec6e79d16356 -r 66f476bc8963 nocompile/abstract_04.d --- a/nocompile/abstract_04.d Fri Jun 24 08:28:49 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Stewart Gordon -// @date@ 2004-09-24 -// @uri@ news:cj0qf6$2u2v$1@digitaldaemon.com -// @url@ nntp://digitalmars.com/digitalmars.D.bugs/1940 - -module dstress.compile.abstract_04; - -int status; - -abstract interface MyInterface{ - abstract int test() - in{ - status++; - }; -} diff -r ec6e79d16356 -r 66f476bc8963 undefined/abstract_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/abstract_01.d Fri Jun 24 08:39:45 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon +// @date@ 2004-09-24 +// @uri@ news:cj0qf6$2u2v$1@digitaldaemon.com +// @url@ nntp://digitalmars.com/digitalmars.D.bugs/1940 + +module dstress.compile.abstract_01; + +int status; + +abstract class MyAbstractClass{ + abstract int test() + in{ + status++; + }; +} diff -r ec6e79d16356 -r 66f476bc8963 undefined/abstract_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/abstract_02.d Fri Jun 24 08:39:45 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon +// @date@ 2004-09-24 +// @uri@ news:cj0qf6$2u2v$1@digitaldaemon.com +// @url@ nntp://digitalmars.com/digitalmars.D.bugs/1940 + +module dstress.compile.abstract_02; + +int status; + +abstract class MyAbstractClass{ + abstract int test() + out{ + status++; + }; +} diff -r ec6e79d16356 -r 66f476bc8963 undefined/abstract_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/abstract_03.d Fri Jun 24 08:39:45 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon +// @date@ 2004-09-24 +// @uri@ news:cj0qf6$2u2v$1@digitaldaemon.com +// @url@ nntp://digitalmars.com/digitalmars.D.bugs/1940 + +module dstress.compile.abstract_03; + +int status; + +abstract interface MyInterface{ + abstract int test() + out{ + status++; + }; +} diff -r ec6e79d16356 -r 66f476bc8963 undefined/abstract_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/abstract_04.d Fri Jun 24 08:39:45 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon +// @date@ 2004-09-24 +// @uri@ news:cj0qf6$2u2v$1@digitaldaemon.com +// @url@ nntp://digitalmars.com/digitalmars.D.bugs/1940 + +module dstress.compile.abstract_04; + +int status; + +abstract interface MyInterface{ + abstract int test() + in{ + status++; + }; +} diff -r ec6e79d16356 -r 66f476bc8963 undefined/auto_05.d --- a/undefined/auto_05.d Fri Jun 24 08:28:49 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Lionello Lunesu -// @date@ 2005-03-25 -// @uri@ news:d2175a$2u8h$1@digitaldaemon.com - -module dstress.undefined.auto_05; - -class AutoClass{ - int test() { - return 0; - } -} - -AutoClass b; - -void autotest(){ - auto AutoClass c = new AutoClass(); - b = c; -} - -int main(){ - autotest(); - b.test(); // *undefined* - return 0; -}