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 e1c8fdf commit 9134d3fCopy full SHA for 9134d3f
compiler/src/dotty/tools/backend/jvm/GenBCode.scala
@@ -55,6 +55,10 @@ class GenBCode extends Phase {
55
try super.runOn(units)
56
finally myOutput match {
57
case jar: JarArchive =>
58
+ if (ctx.run.suspendedUnits.nonEmpty)
59
+ // If we close the jar the next run will not be able to write on the jar.
60
+ // But if we do not close it we cannot use it as part of the macro classpath of the suspended files.
61
+ ctx.error("Can not suspend and output to a jar at the same time. See suspension with -Xprint-suspension.")
62
jar.close()
63
case _ =>
64
}
0 commit comments