Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 7532b00

Browse files
RazvanN7dlang-bot
authored andcommitted
Fix Fields implementation for interfaces
1 parent 1d3f851 commit 7532b00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/internal/traits.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ template Fields(T)
1414
{
1515
static if (is(T == struct) || is(T == union))
1616
alias Fields = typeof(T.tupleof[0 .. $ - __traits(isNested, T)]);
17-
else static if (is(T == class))
17+
else static if (is(T == class) || is(T == interface))
1818
alias Fields = typeof(T.tupleof);
1919
else
2020
alias Fields = AliasSeq!T;

0 commit comments

Comments
 (0)