Skip to content

Commit 093a99b

Browse files
committed
Fix #5149: Use function that closes the file stream instead of Iterator which doesn't
1 parent a4b60c4 commit 093a99b

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.trees(ctx)
116116
}

0 commit comments

Comments
 (0)