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.
1 parent 3508d33 commit 2801664Copy full SHA for 2801664
compiler/src/dotty/tools/dotc/transform/init/CycleChecker.scala
@@ -237,7 +237,8 @@ class CycleChecker(cache: Cache) {
237
parentsInited = mutable.Set.empty,
238
safePromoted = mutable.Set(ThisRef()(dep.cls.defTree)),
239
dependencies = mutable.Set.empty,
240
- env = env
+ env = env,
241
+ init = true
242
) {
243
override def isFieldInitialized(field: Symbol): Boolean = true
244
}
@@ -341,11 +342,8 @@ class CycleChecker(cache: Cache) {
341
342
case AnnotatedType(tp, _) =>
343
analyzeType(tp, source, exclude)
344
- case _: AndOrType | _: RefinedOrRecType =>
345
- Nil
346
-
347
case _ =>
348
- throw new Exception("unexpected type: " + tp)
+ Nil
349
350
351
private def analyzeMethod(dep: StaticCall)(using Context): List[Dependency] = {
0 commit comments