www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - interface A base class is forward referenced by B

reply Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
// main.d

interface Foo
{
}

interface Bar : Foo
{
}

class Baz : Bar
{
}

void main()
{
	Bar b = new Baz;
	cast(Object)b;
}


Error: interface main.Bar base class is forward referenced by Object
Appeared in DMD.119; WinXP

-- 
Tomasz Stachowiak  /+ a.k.a. h3r3tic +/
Mar 20 2005
next sibling parent "Walter" <newshound digitalmars.com> writes:
"Tom S" <h3r3tic remove.mat.uni.torun.pl> wrote in message
news:d1kc3u$ubc$1 digitaldaemon.com...
 Error: interface main.Bar base class is forward referenced by Object
 Appeared in DMD.119; WinXP
Sorry about that. Fix will go out in .120.
Mar 20 2005
prev sibling parent Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom S schrieb am Sun, 20 Mar 2005 18:32:47 +0100:
 // main.d

 interface Foo
 {
 }

 interface Bar : Foo
 {
 }

 class Baz : Bar
 {
 }

 void main()
 {
 	Bar b = new Baz;
 	cast(Object)b;
 }


 Error: interface main.Bar base class is forward referenced by Object
 Appeared in DMD.119; WinXP
Added to DStress as http://dstress.kuehne.cn/run/interface_12.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCP8V63w+/yD4P9tIRAivdAJ0arxZPYCIKrA8IiPUNILcyTKsr/ACdEBGa 3M2W3H76UnkqdnJFBOrrldE= =Y/Dl -----END PGP SIGNATURE-----
Mar 22 2005