FieldNameTuple!T and std.traits.Fields!T not empty for interfaces

Amex Amex at gmail.com
Thu Jun 6 20:22:26 UTC 2019


FieldNameTuple!T
std.traits.Fields!T

are non-empty when T is an interface!

An interface cannot contain fields and yet these return non-zero 
and screws up my code. While I can filter for interfaces it makes 
me wonder what else may slip through?

Is it a bug or what is going on?


More information about the Digitalmars-d-learn mailing list