Skip to content

Commit 2801664

Browse files
committed
Fix community build
1 parent 3508d33 commit 2801664

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ class CycleChecker(cache: Cache) {
237237
parentsInited = mutable.Set.empty,
238238
safePromoted = mutable.Set(ThisRef()(dep.cls.defTree)),
239239
dependencies = mutable.Set.empty,
240-
env = env
240+
env = env,
241+
init = true
241242
) {
242243
override def isFieldInitialized(field: Symbol): Boolean = true
243244
}
@@ -341,11 +342,8 @@ class CycleChecker(cache: Cache) {
341342
case AnnotatedType(tp, _) =>
342343
analyzeType(tp, source, exclude)
343344

344-
case _: AndOrType | _: RefinedOrRecType =>
345-
Nil
346-
347345
case _ =>
348-
throw new Exception("unexpected type: " + tp)
346+
Nil
349347
}
350348

351349
private def analyzeMethod(dep: StaticCall)(using Context): List[Dependency] = {

0 commit comments

Comments
 (0)