Skip to content

Commit 16a37db

Browse files
committed
[mcs] Less cascading errors
1 parent f49ca11 commit 16a37db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcs/mcs/expression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ protected override Expression DoResolve (ResolveContext ec)
11461146
{
11471147
expr = expr.Resolve (ec);
11481148

1149-
if (expr == null)
1149+
if (expr == null || expr.Type == InternalType.ErrorType)
11501150
return null;
11511151

11521152
if (expr.Type.BuiltinType == BuiltinTypeSpec.Type.Dynamic) {

0 commit comments

Comments
 (0)