File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,8 @@ class CycleChecker(cache: Cache) {
237
237
parentsInited = mutable.Set .empty,
238
238
safePromoted = mutable.Set (ThisRef ()(dep.cls.defTree)),
239
239
dependencies = mutable.Set .empty,
240
- env = env
240
+ env = env,
241
+ init = true
241
242
) {
242
243
override def isFieldInitialized (field : Symbol ): Boolean = true
243
244
}
@@ -341,11 +342,8 @@ class CycleChecker(cache: Cache) {
341
342
case AnnotatedType (tp, _) =>
342
343
analyzeType(tp, source, exclude)
343
344
344
- case _ : AndOrType | _ : RefinedOrRecType =>
345
- Nil
346
-
347
345
case _ =>
348
- throw new Exception ( " unexpected type: " + tp)
346
+ Nil
349
347
}
350
348
351
349
private def analyzeMethod (dep : StaticCall )(using Context ): List [Dependency ] = {
You can’t perform that action at this time.
0 commit comments