Skip to content

Commit 5c70826

Browse files
committed
Fix missing error message
This is a partial fix to #5831: #5831
1 parent 6bb20b3 commit 5c70826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/RefChecks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ class RefChecks extends MiniPhase { thisPhase =>
982982
tree
983983
} catch {
984984
case ex: TypeError =>
985-
ctx.error(ex.getMessage, tree.sourcePos)
985+
ctx.error(ex.toMessage, tree.sourcePos)
986986
tree
987987
}
988988

0 commit comments

Comments
 (0)