Skip to content

Commit 9fcceb4

Browse files
committed
Make checkNonCyclic force less
`checkInfo` is just the identity on ClassInfo so no need to force the info in this case. This avoids some cyclic reference errors which started appearing after other completions-related changes in this PR.
1 parent b264bf0 commit 9fcceb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ object Checking {
258258
if (locked.contains(tp) || tp.symbol.infoOrCompleter.isInstanceOf[NoCompleter])
259259
throw CyclicReference(tp.symbol)
260260
locked += tp
261-
try checkInfo(tp.info)
261+
try if (!tp.symbol.isClass) checkInfo(tp.info)
262262
finally locked -= tp
263263
tp.withPrefix(pre1)
264264
}

0 commit comments

Comments
 (0)