Skip to content

Commit 19cdeb4

Browse files
authored
Merge pull request #5170 from melekhove/issue/5149
Fix #5149: Use function that closes the file stream
2 parents 5e91f77 + 093a99b commit 19cdeb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/test/dotty/tools/dotc/core/tasty/CommentPicklingTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class CommentPicklingTest {
110110
implicit val (_, ctx: Context) = setup(args, initCtx)
111111
ctx.initialize()
112112
val trees = files.flatMap { f =>
113-
val unpickler = new DottyUnpickler(f.bytes().toArray)
113+
val unpickler = new DottyUnpickler(f.toByteArray())
114114
unpickler.enter(roots = Set.empty)
115115
unpickler.rootTrees(ctx)
116116
}

0 commit comments

Comments
 (0)