We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44c1e3a commit 7641a94Copy full SHA for 7641a94
compiler/src/dotty/tools/dotc/core/tasty/BestEffortTastyWriter.scala
@@ -18,12 +18,13 @@ object BestEffortTastyWriter:
18
unit.pickled.foreach { (clz, binary) =>
19
val parts = clz.fullName.mangledString.split('.')
20
val outPath = outputPath(parts.toList, dir)
21
- val outTastyFile = new PlainFile(new File(outPath))
+ val file = new File(outPath)
22
+ val outTastyFile = new PlainFile(file)
23
val outstream = new DataOutputStream(outTastyFile.bufferedOutput)
24
try outstream.write(binary())
25
catch case ex: ClosedByInterruptException =>
26
try
- outTastyFile.delete() // don't leave an empty or half-written tastyfile around after an interrupt
27
+ file.delete() // don't leave an empty or half-written tastyfile around after an interrupt
28
catch
29
case _: Throwable =>
30
throw ex
0 commit comments