Skip to content

Commit 43cc22e

Browse files
committed
Update decompile check files
1 parent 4a9d033 commit 43cc22e

12 files changed

+33
-33
lines changed

tests/pos/i0306.decompiled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** Decompiled from out/posTestFromTasty/pos/i0306/bar.tasty */
22
object bar {
33
class C[T <: scala.Seq[_ >: scala.Nothing <: scala.Any]]()
4-
val x: scala.AnyRef = new bar.C[scala.collection.Seq[_ >: scala.Nothing <: scala.Any]]()
4+
val x: scala.AnyRef = new bar.C()
55
val y = bar.x match {
66
case x: bar.C[u] =>
77
def xx: u = xx

tests/pos/i1181.decompiled

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/** Decompiled from out/posTestFromTasty/pos/i1181/Test.class */
1+
/** Decompiled from out/posTestFromTasty/pos/i1181/Test.tasty */
22
object Test {
33
def foo[M[_$1]](x: M[scala.Int]): M[scala.Int] = x
44
type Alias[A] = scala.Tuple2[A, A]
55
val x: Test.Alias[scala.Int] = scala.Tuple2.apply[scala.Int, scala.Int](1, 2)
6-
Test.foo[Test.Alias](Test.x)
7-
Test.foo[[A >: scala.Nothing <: scala.Any] => scala.Tuple2[A, A]](Test.x)
8-
}
6+
Test.foo(Test.x)
7+
Test.foo(Test.x)
8+
}

tests/pos/i2104b.decompiled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ case class Pair[A, B](_1: A, _2: B) {
3434
object Pair extends scala.AnyRef
3535
/** Decompiled from out/posTestFromTasty/pos/i2104b/Test.tasty */
3636
object Test {
37-
def main(args: scala.Array[scala.Predef.String]): scala.Unit = Cons.apply[scala.Option[scala.Int], scala.None.type](scala.Option.apply[scala.Int](1), scala.None) match {
37+
def main(args: scala.Array[scala.Predef.String]): scala.Unit = Cons.apply(scala.Option.apply(1), scala.None) match {
3838
case Cons(scala.Some(i), scala.None) =>
3939
()
4040
}

tests/pos/i566.decompiled

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/** Decompiled from out/posTestFromTasty/pos/i566/Test.class */
1+
/** Decompiled from out/posTestFromTasty/pos/i566/Test.tasty */
22
class Test() {
33
type T = scala.Predef.String
44
type U
5-
scala.reflect.classTag[Test.this.T](scala.reflect.ClassTag.apply[Test.this.T](classOf[java.lang.String]))
6-
}
5+
scala.reflect.classTag(scala.reflect.ClassTag.apply[Test.this.T](classOf[java.lang.String]))
6+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/** Decompiled from out/posTestFromTasty/pos/simple-repeated-args/Foo.class */
1+
/** Decompiled from out/posTestFromTasty/pos/simple-repeated-args/Foo.tasty */
22
class Foo() {
3-
scala.List.apply[scala.Any](1, "2", '3')
3+
scala.List.apply(1, "2", '3')
44
scala.Array.apply(1)
5-
}
5+
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
/** Decompiled from out/posTestFromTasty/pos/simpleExtractors-1/Bar.class */
1+
/** Decompiled from out/posTestFromTasty/pos/simpleExtractors-1/Bar.tasty */
22
object Bar {
3-
def unapply(arg: scala.Any): scala.Option[scala.Any] = scala.Some.apply[scala.Any](arg)
3+
def unapply(arg: scala.Any): scala.Option[scala.Any] = scala.Some.apply(arg)
44
}
5-
/** Decompiled from out/posTestFromTasty/pos/simpleExtractors-1/BarSeq.class */
5+
/** Decompiled from out/posTestFromTasty/pos/simpleExtractors-1/BarSeq.tasty */
66
object BarSeq {
7-
def unapplySeq(arg: scala.Any): scala.Option[scala.Seq[scala.Any]] = scala.Some.apply[collection.immutable.List[scala.Any]](scala.List.apply[scala.Any](arg))
7+
def unapplySeq(arg: scala.Any): scala.Option[scala.Seq[scala.Any]] = scala.Some.apply(scala.List.apply(arg))
88
}
9-
/** Decompiled from out/posTestFromTasty/pos/simpleExtractors-1/Baz.class */
9+
/** Decompiled from out/posTestFromTasty/pos/simpleExtractors-1/Baz.tasty */
1010
object Baz {
11-
def unapply[T](arg: T): scala.Option[T] = scala.Some.apply[T](arg)
11+
def unapply[T](arg: T): scala.Option[T] = scala.Some.apply(arg)
1212
}
13-
/** Decompiled from out/posTestFromTasty/pos/simpleExtractors-1/BazSeq.class */
13+
/** Decompiled from out/posTestFromTasty/pos/simpleExtractors-1/BazSeq.tasty */
1414
object BazSeq {
15-
def unapplySeq[T](arg: T): scala.Option[scala.Seq[T]] = scala.Some.apply[collection.immutable.List[T]](scala.List.apply[T](arg))
15+
def unapplySeq[T](arg: T): scala.Option[scala.Seq[T]] = scala.Some.apply(scala.List.apply(arg))
1616
}
17-
/** Decompiled from out/posTestFromTasty/pos/simpleExtractors-1/Foo.class */
17+
/** Decompiled from out/posTestFromTasty/pos/simpleExtractors-1/Foo.tasty */
1818
class Foo() {
1919
def bar(x: scala.Any): scala.Unit = x match {
2020
case Bar(a) =>
@@ -32,4 +32,4 @@ class Foo() {
3232
case BazSeq(a, b) =>
3333
scala.Predef.println(a)
3434
}
35-
}
35+
}

tests/pos/varargs-position.decompiled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
object varargspos {
33
def g(a: scala.Int, x: scala.Int*): scala.Int = a.+(x.length)
44
varargspos.g(1, 2, 3, 4)
5-
val xs = scala.Nil.::[scala.Int](2).::[scala.Int](1)
5+
val xs = scala.Nil.::(2).::(1)
66
val a = 8
77
val b = 7
88
varargspos.g(5, varargspos.xs: _*)

tests/run/classof-object.decompiled

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/** Decompiled from out/runTestFromTasty/run/classof-object/Test.tasty */
22
object Test {
3-
def main(args: scala.Array[scala.Predef.String]): scala.Unit = if (scala.Predef.classOf[Test.type].==(Test.getClass()).unary_!) dotty.DottyPredef.assertFail() else ()
4-
}
3+
def main(args: scala.Array[scala.Predef.String]): scala.Unit = if (scala.Predef.classOf.==(Test.getClass()).unary_!) dotty.DottyPredef.assertFail() else ()
4+
}

tests/run/t4300.decompiled

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class B() extends A {
88
trait C() extends java.lang.Object {
99
def c(): scala.Unit = B.super[A].f()
1010
}
11-
def g(): scala.Unit = scala.Predef.intWrapper(0).until(1).foreach[scala.Unit](((i: scala.Int) => super[A].f()))
12-
def h(): scala.Unit = scala.Predef.intWrapper(0).until(1).foreach[scala.Unit](((i: scala.Int) => B.super[A].f()))
11+
def g(): scala.Unit = scala.Predef.intWrapper(0).until(1).foreach(((i: scala.Int) => super[A].f()))
12+
def h(): scala.Unit = scala.Predef.intWrapper(0).until(1).foreach(((i: scala.Int) => B.super[A].f()))
1313
override def f(): scala.Unit = scala.Predef.println("B")
1414
}
1515
/** Decompiled from out/runTestFromTasty/run/t4300/Test.tasty */

tests/run/t8100.decompiled

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/** Decompiled from out/runTestFromTasty/run/t8100/Test.class */
1+
/** Decompiled from out/runTestFromTasty/run/t8100/Test.tasty */
22
object Test {
33
import scala.util.{Try}
44
def main(args: scala.Array[scala.Predef.String]): scala.Unit = {
5-
def stream: collection.immutable.Stream[scala.None.type] = scala.Stream.from(0).take(100000).map[scala.None.type, collection.immutable.Stream[scala.None.type]](((n: scala.Int) => scala.None))(collection.immutable.Stream.canBuildFrom[scala.None.type])
6-
scala.Predef.println(scala.util.Try.apply[scala.Int](stream.flatten[scala.Nothing](((xo: scala.None.type) => scala.Option.option2Iterable[scala.Nothing](xo))).length))
5+
def stream: collection.immutable.Stream[scala.None.type] = scala.Stream.from(0).take(100000).map(((n: scala.Int) => scala.None))(collection.immutable.Stream.canBuildFrom[scala.None.type])
6+
scala.Predef.println(scala.util.Try.apply(stream.flatten(((xo: scala.None.type) => scala.Option.option2Iterable[scala.Nothing](xo))).length))
77
}
8-
}
8+
}

tests/run/t889.decompiled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** Decompiled from out/runTestFromTasty/run/t889/Test.tasty */
22
object Test extends dotty.runtime.LegacyApp {
3-
val a = scala.List.apply[java.lang.String]("a")
3+
val a = scala.List.apply("a")
44
Test.a match {
55
case scala.Seq("a", "b", rest: _*) =>
66
scala.Predef.println("a, b, ".+(rest))

tests/run/virtpatmat_alts.decompiled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ object Test extends dotty.runtime.LegacyApp {
44
case (scala.Tuple2(true, true) | scala.Tuple2(false, false)) =>
55
1
66
}
7-
scala.List.apply[scala.Int](5) match {
7+
scala.List.apply(5) match {
88
case (scala.::(1, scala.Nil) | scala.::(2, scala.Nil)) =>
99
scala.Predef.println("FAILED")
1010
case scala.::(x @ (4 | 5 | 6), scala.Nil) =>

0 commit comments

Comments
 (0)