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) }