phobos/changelog/fields_interface.dd
Florian f2ad29e5b2
Sync Fields with FieldNameTuple for interfaces (#8023)
Sync Fields with FieldNameTuple for interfaces
merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-05-03 12:55:23 +02:00

8 lines
397 B
Text

`Fields` (formerly `FieldTypeTuple`) now returns an empty tuple for interfaces
Previously `Fields` returned `AliasSeq!(Interface)` for interfaces as done for
non-aggregate types like `int`, `char*`, ... . This behaviour was surprising
because an instance of an interface *may* have members that just are not
known at compile time.
`Fields` will now return an empty `AliasSeq!()` for interfaces.