diff options
Diffstat (limited to 'src/main/scala')
-rw-r--r-- | src/main/scala/scala/async/ExprBuilder.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/scala/scala/async/ExprBuilder.scala b/src/main/scala/scala/async/ExprBuilder.scala index c5c192d..3a27d1d 100644 --- a/src/main/scala/scala/async/ExprBuilder.scala +++ b/src/main/scala/scala/async/ExprBuilder.scala @@ -529,6 +529,9 @@ class ExprBuilder[C <: Context with Singleton](val c: C) extends AsyncUtils { currState = currState + matchBudget stateBuilder = new builder.AsyncStateBuilder(currState, toRename) + case ClassDef(_, name, _, _) => + c.error(stat.pos, s"Local class $name illegal within `async` block") + case _ => checkForUnsupportedAwait(stat) stateBuilder += stat |