Skip to content

Commit 1165e98

Browse files
authored
Merge pull request #7446 from dotty-staging/fix-lazyref
Fix LazyRef#ref error recovery
2 parents 675779e + b33e232 commit 1165e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ object Types {
25092509
// if errors were reported previously handle this by throwing a CyclicReference
25102510
// instead of crashing immediately. A test case is neg/i6057.scala.
25112511
assert(ctx.reporter.errorsReported)
2512-
CyclicReference(NoDenotation)
2512+
throw CyclicReference(NoDenotation)
25132513
}
25142514
}
25152515
else {

0 commit comments

Comments
 (0)