We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e38e533 + 8d7e012 commit 518c426Copy full SHA for 518c426
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1361,7 +1361,8 @@ object Types {
1361
case tp: TypeRef =>
1362
if (tp.info.isInstanceOf[TempClassInfo]) {
1363
tp.recomputeDenot()
1364
- assert(!tp.info.isInstanceOf[TempClassInfo])
+ // We usually should have `!tp.info.isInstanceOf[TempClassInfo]` here, but
1365
+ // this can be falsified for code with illegal cyclic references. See neg/i7107.scala.
1366
}
1367
tp.info.parents
1368
case tp: TypeProxy =>
tests/neg/i7107.scala
@@ -0,0 +1,2 @@
1
+trait F[T] { type X }
2
+object Rec extends F[Rec.X] // error: X is not a member of Rec
0 commit comments