Skip to content

Commit 9c8850f

Browse files
committed
Fix crash compiling Dotty
1 parent 14b9530 commit 9c8850f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/src/dotty/tools/dotc/transform/init/CycleChecker.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,12 @@ class CycleChecker(cache: Cache) {
340340
// possible from parent list
341341
Nil
342342

343+
case AnnotatedType(tp, _) =>
344+
analyzeType(tp, source, exclude)
345+
346+
case _: AndOrType | _: RefinedOrRecType =>
347+
Nil
348+
343349
case _ =>
344350
throw new Exception("unexpected type: " + tp)
345351
}

0 commit comments

Comments
 (0)