TypeInfo_Class.interfaces has TypeInfo_Class and not TypeInfo_Interface?
Tofu Ninja
joeyemmons at yahoo.com
Fri Dec 15 13:56:44 UTC 2017
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 {}
More information about the Digitalmars-d-learn
mailing list