Bug 21863 – FieldNameTuple returns emptry string for interfaces

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-04-25T18:18:12Z
Last change time
2021-04-26T05:45:41Z
Assigned to
No Owner
Creator
moonlightsentinel

Comments

Comment #0 by moonlightsentinel — 2021-04-25T18:18:12Z
interface I {} pragma(msg, FieldNameTuple!I); // yields tuple("") instead of tuple()
Comment #1 by dlang-bot — 2021-04-26T05:45:41Z
dlang/phobos pull request #8011 "Fix 21863 - FieldNameTuple returns emptry string for interfaces" was merged into master: - 2696663127579cf4c74e53fdc9857a01d50c1752 by MoonlightSentinel: Fix 21863 - FieldNameTuple returns emptry string for interfaces Symbols without members should produce an empty tuple. `""` is also not a member and hence requires additional special casing. https://github.com/dlang/phobos/pull/8011