December 15, 2017 TypeInfo_Class.interfaces has TypeInfo_Class and not TypeInfo_Interface? | ||||
---|---|---|---|---|
| ||||
TypeInfo_Class.interfaces has TypeInfo_Class and not TypeInfo_Interface? Is this correct? Or is it a bug? Doesn't make much sense to me. |
December 15, 2017 Re: TypeInfo_Class.interfaces has TypeInfo_Class and not TypeInfo_Interface? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tofu Ninja | On Friday, 15 December 2017 at 05:19:04 UTC, Tofu Ninja wrote: > TypeInfo_Class.interfaces has TypeInfo_Class and not TypeInfo_Interface? > > Is this correct? Or is it a bug? > Doesn't make much sense to me. Also the following code prints false so there are some consequences to this. import std.stdio; void main(string[] args) { writeln(typeid(c).interfaces[0].classinfo == typeid(i)); } interface i {} class c : i {} |
Copyright © 1999-2021 by the D Language Foundation