From 093a99b95e672ddf4f94b6ae07e92b613e4e9114 Mon Sep 17 00:00:00 2001 From: Eugene Melekhov Date: Thu, 27 Sep 2018 08:08:56 +0300 Subject: [PATCH] Fix #5149: Use function that closes the file stream instead of Iterator which doesn't --- .../test/dotty/tools/dotc/core/tasty/CommentPicklingTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/test/dotty/tools/dotc/core/tasty/CommentPicklingTest.scala b/compiler/test/dotty/tools/dotc/core/tasty/CommentPicklingTest.scala index 4cafc1673027..e890c1c3b1d9 100644 --- a/compiler/test/dotty/tools/dotc/core/tasty/CommentPicklingTest.scala +++ b/compiler/test/dotty/tools/dotc/core/tasty/CommentPicklingTest.scala @@ -110,7 +110,7 @@ class CommentPicklingTest { implicit val (_, ctx: Context) = setup(args, initCtx) ctx.initialize() val trees = files.flatMap { f => - val unpickler = new DottyUnpickler(f.bytes().toArray) + val unpickler = new DottyUnpickler(f.toByteArray()) unpickler.enter(roots = Set.empty) unpickler.trees(ctx) }