Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
valis committed Jun 24, 2024
1 parent 3540f92 commit ef50df8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1950,7 +1950,7 @@ private List<ExtElimClause> typecheckFunctionBody(FunctionDefinition typedDef, C
}
index++;
}
} else {
} else if (!expectedType.isError()) {
errorReporter.report(new CertainTypecheckingError(CertainTypecheckingError.Kind.INSTANCE_TYPE, def));
}
} else if (kind == FunctionKind.TYPE) {
Expand Down

0 comments on commit ef50df8

Please sign in to comment.