[Bug 65] New: Strange results overriding interface return with class return

Thomas Kuehne thomas-dloop at kuehne.cn
Fri Mar 24 06:28:40 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-03-22:
> The compiler allows a method with an interface return type to be overridden
> with a class return type.  However, when this is done, strange things happen,
> from AVs to doing things that seem to have no relation to the method that was
> called.

[snip]

Added to DStress as
http://dstress.kuehne.cn/run/i/interface_23_A.d
http://dstress.kuehne.cn/run/i/interface_23_B.d
http://dstress.kuehne.cn/run/i/interface_23_C.d
http://dstress.kuehne.cn/run/i/interface_23_D.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFEJAux3w+/yD4P9tIRAt5wAJ0cS3D9WA8t9kcyIh9R45PCXePsiwCfZDUy
j416iT8Nk/EiGgs9tufXEwc=
=SSd2
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list