mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00

Sync Fields with FieldNameTuple for interfaces merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
8 lines
397 B
Text
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.
|