# HG changeset patch # User thomask # Date 1108203941 0 # Node ID 81fdb31f59601ba032fcb8a276c1a5969aef756d # Parent b8b7a330468a26754c64af6721d3febffb2b6692 this -> var in classes and structs Stewart Gordon 2005-02-08 news:cua2nm$11pg$1@digitaldaemon.com nntp://news.digitalmars.com/digitalmars.D.bugs/2888 diff -r b8b7a330468a -r 81fdb31f5960 nocompile/this_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/this_04.d Sat Feb 12 10:25:41 2005 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon +// @date@ 2005-02-08 +// @uri@ news:cua2nm$11pg$1@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2888 + +module dstress.nocompile.this_04; + +struct MyStruct{ + MyStruct* s = this; +} + \ No newline at end of file diff -r b8b7a330468a -r 81fdb31f5960 nocompile/this_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/this_05.d Sat Feb 12 10:25:41 2005 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon +// @date@ 2005-02-08 +// @uri@ news:cua2nm$11pg$1@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2888 + +module dstress.nocompile.this_05; + +struct MyStruct{ + int i; + int* p = &i; +} + \ No newline at end of file diff -r b8b7a330468a -r 81fdb31f5960 nocompile/this_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/this_06.d Sat Feb 12 10:25:41 2005 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon +// @date@ 2005-02-08 +// @uri@ news:cua2nm$11pg$1@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2888 + +module dstress.nocompile.this_06; + +class MyClass{ + int i; + int* p = &i; +} + \ No newline at end of file