Skip to content

Commit 8dabac3

Browse files
committed
Fix typo in dmd.expression apparently causing sporadic frontend crashes
1 parent 9e85900 commit 8dabac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dmd/expression.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2120,7 +2120,7 @@ extern (C++) abstract class Expression : RootObject
21202120

21212121
if (v.type.ty == Tstruct)
21222122
{
2123-
StructDeclaration sd = (cast(TypeStruct)type).sym;
2123+
StructDeclaration sd = (cast(TypeStruct)v.type).sym;
21242124
if (sd.hasNoFields)
21252125
return false;
21262126
}

0 commit comments

Comments
 (0)