www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - TypeInfo_Class.interfaces has TypeInfo_Class and not

reply Tofu Ninja <joeyemmons yahoo.com> writes:
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.
Dec 14 2017
parent Tofu Ninja <joeyemmons yahoo.com> writes:
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 {}
Dec 15 2017