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 31b25e0 commit 8a3d92dCopy full SHA for 8a3d92d
compiler/src/dotty/tools/dotc/quoted/Interpreter.scala
@@ -346,7 +346,8 @@ object Interpreter:
346
347
object MissingClassDefinedInCurrentRun {
348
def unapply(targetException: Throwable)(using Context): Option[Symbol] = {
349
- targetException match
+ if !ctx.compilationUnit.isSuspendable then None
350
+ else targetException match
351
case _: NoClassDefFoundError | _: ClassNotFoundException =>
352
val className = targetException.getMessage
353
if className eq null then None
0 commit comments