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 36fabb9 commit e70cba0Copy full SHA for e70cba0
compiler/src/dotty/tools/dotc/transform/init/Checking.scala
@@ -360,7 +360,11 @@ object Checking {
360
PromoteCold(eff.source, state.path).toErrors
361
362
case pot @ Warm(cls, outer) =>
363
- checkPromoteWarm(pot, eff)
+ if cls.isAnonymousClass then
364
+ // bail out for now, see https://github.com/lampepfl/dotty/pull/11533#issuecomment-811819003
365
+ PromoteWarm(pot, eff.source, state.path).toErrors
366
+ else
367
+ checkPromoteWarm(pot, eff)
368
369
case Fun(pots, effs) =>
370
val errs1 = state.test {
0 commit comments