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 60b7892 commit 16b1318Copy full SHA for 16b1318
compiler/src/dotty/tools/dotc/transform/init/Checking.scala
@@ -350,7 +350,11 @@ object Checking {
350
PromoteCold(eff.source, state.path).toErrors
351
352
case pot @ Warm(cls, outer) =>
353
- checkPromoteWarm(pot, eff)
+ if cls.isAnonymousClass then
354
+ // bail out for now, see https://github.com/lampepfl/dotty/pull/11533#issuecomment-811819003
355
+ PromoteWarm(pot, eff.source, state.path).toErrors
356
+ else
357
+ checkPromoteWarm(pot, eff)
358
359
case Fun(pots, effs) =>
360
val errs1 = state.test {
0 commit comments