diff --git a/compiler/src/dotty/tools/dotc/quoted/TreeCleaner.scala b/compiler/src/dotty/tools/dotc/quoted/TreeCleaner.scala index 6035d8900c6c..93c203fffb12 100644 --- a/compiler/src/dotty/tools/dotc/quoted/TreeCleaner.scala +++ b/compiler/src/dotty/tools/dotc/quoted/TreeCleaner.scala @@ -38,8 +38,8 @@ class TreeCleaner extends tpd.TreeMap { case stat => stat :: Nil } expr1 match { - case Block(stats3, expr3) => Block(flatStats ::: stats3, expr3) - case expr3 => Block(flatStats, expr3) + case Block(stats3, expr3) => seq(flatStats ::: stats3, expr3) + case expr3 => seq(flatStats, expr3) } case tree1: TypeTree => TypeTree(tree1.tpe.subst(aliasesSyms, aliasesTypes)) case tree1: Ident => aliases.get(tree1.symbol).getOrElse(tree1) diff --git a/tests/run-with-compiler/i3847-b.check b/tests/run-with-compiler/i3847-b.check index 49278cfb1655..8158391f2453 100644 --- a/tests/run-with-compiler/i3847-b.check +++ b/tests/run-with-compiler/i3847-b.check @@ -1,3 +1 @@ -{ - new scala.Array[scala.List[scala.Int]](1) -} \ No newline at end of file +new scala.Array[scala.List[scala.Int]](1) diff --git a/tests/run-with-compiler/i4350.check b/tests/run-with-compiler/i4350.check index 7d5fd0304324..45b028ad64cb 100644 --- a/tests/run-with-compiler/i4350.check +++ b/tests/run-with-compiler/i4350.check @@ -1,6 +1,2 @@ -{ - null.asInstanceOf[lang.Object] -} -{ - null.asInstanceOf[scala.Predef.String] -} +null.asInstanceOf[lang.Object] +null.asInstanceOf[scala.Predef.String] diff --git a/tests/run-with-compiler/shonan-hmm.check b/tests/run-with-compiler/shonan-hmm.check index c4f1579e7497..1d524b5c4fc6 100644 --- a/tests/run-with-compiler/shonan-hmm.check +++ b/tests/run-with-compiler/shonan-hmm.check @@ -45,9 +45,7 @@ List(25, 30, 20, 43, 44) { val arr: scala.Array[scala.Array[scala.Int]] = { - val array: scala.Array[scala.Array[scala.Int]] = dotty.runtime.Arrays.newGenericArray[scala.Array[scala.Int]](5)({ - scala.reflect.ClassTag.apply[scala.Array[scala.Int]](scala.Predef.classOf[scala.Array[scala.Int]]) - }) + val array: scala.Array[scala.Array[scala.Int]] = dotty.runtime.Arrays.newGenericArray[scala.Array[scala.Int]](5)(scala.reflect.ClassTag.apply[scala.Array[scala.Int]](scala.Predef.classOf[scala.Array[scala.Int]])) array.update(0, { val array$2: scala.Array[scala.Int] = new scala.Array[scala.Int](5) array$2.update(0, 5) @@ -111,9 +109,7 @@ List(25, 30, 20, 43, 44) { val arr: scala.Array[scala.Array[scala.Int]] = { - val array: scala.Array[scala.Array[scala.Int]] = dotty.runtime.Arrays.newGenericArray[scala.Array[scala.Int]](5)({ - scala.reflect.ClassTag.apply[scala.Array[scala.Int]](scala.Predef.classOf[scala.Array[scala.Int]]) - }) + val array: scala.Array[scala.Array[scala.Int]] = dotty.runtime.Arrays.newGenericArray[scala.Array[scala.Int]](5)(scala.reflect.ClassTag.apply[scala.Array[scala.Int]](scala.Predef.classOf[scala.Array[scala.Int]])) array.update(0, { val array$2: scala.Array[scala.Int] = new scala.Array[scala.Int](5) array$2.update(0, 5) @@ -177,9 +173,7 @@ List(25, 30, 20, 43, 44) { val arr: scala.Array[scala.Array[scala.Int]] = { - val array: scala.Array[scala.Array[scala.Int]] = dotty.runtime.Arrays.newGenericArray[scala.Array[scala.Int]](5)({ - scala.reflect.ClassTag.apply[scala.Array[scala.Int]](scala.Predef.classOf[scala.Array[scala.Int]]) - }) + val array: scala.Array[scala.Array[scala.Int]] = dotty.runtime.Arrays.newGenericArray[scala.Array[scala.Int]](5)(scala.reflect.ClassTag.apply[scala.Array[scala.Int]](scala.Predef.classOf[scala.Array[scala.Int]])) array.update(0, { val array$2: scala.Array[scala.Int] = new scala.Array[scala.Int](5) array$2.update(0, 5)