Mercurial > projects > dstress
changeset 212:a1b5ea8ffe68
"!=" versus "!=="
h3r3tic <foo@bar.baz>
2004-12-26
news:cqml2m$1ujj$1@digitaldaemon.com
nntp://digitalmars.com/digitalmars.D.bugs/2604
author | thomask |
---|---|
date | Sun, 26 Dec 2004 21:33:40 +0000 |
parents | 8695916b11c3 |
children | d7f9263ec932 |
files | compile/bug_dsymbol_611_C.d nocompile/bug_dsymbol_611_A.d nocompile/bug_dsymbol_611_B.d |
diffstat | 3 files changed, 82 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/bug_dsymbol_611_C.d Sun Dec 26 21:33:40 2004 +0000 @@ -0,0 +1,30 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ h3r3tic <foo@bar.baz> +// @date@ 2004-12-26 +// @uri@ news:cqml2m$1ujj$1@digitaldaemon.com +// @url@ nntp://digitalmars.com/digitalmars.D.bugs/2604 + +module dstress.compile.bug_dsymbol_611_C; + +interface INode{ + INode owner(); +} + +class BasicNode : INode{ + INode findNode(){ + foreach(INode c ; m_children){ + if(c.owner !== this) + continue; + return null; + } + } + + INode owner(){ + return this; + } + + INode[] m_children; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_dsymbol_611_A.d Sun Dec 26 21:33:40 2004 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ h3r3tic <foo@bar.baz> +// @date@ 2004-12-26 +// @uri@ news:cqml2m$1ujj$1@digitaldaemon.com +// @url@ nntp://digitalmars.com/digitalmars.D.bugs/2604 + +module dstress.nocompile.bug_dsymbol_611_A; + +interface INode{ + INode owner(); +} + +class BasicNode : INode{ + INode findNode(){ + foreach(INode c ; m_children){ + if(c.owner != this) + continue; + return null; + } + } + + INode[] m_children; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_dsymbol_611_B.d Sun Dec 26 21:33:40 2004 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ h3r3tic <foo@bar.baz> +// @date@ 2004-12-26 +// @uri@ news:cqml2m$1ujj$1@digitaldaemon.com +// @url@ nntp://digitalmars.com/digitalmars.D.bugs/2604 + +module dstress.nocompile.bug_dsymbol_611_B; + +interface INode{ + INode owner(); +} + +class BasicNode : INode{ + INode findNode(){ + foreach(INode c ; m_children){ + if(c.owner !== this) + continue; + return null; + } + } + + INode[] m_children; +}