Skip to content

Commit b8184cf

Browse files
Tobias Bordencanicolasstucki
Tobias Bordenca
authored andcommitted
Update expected outputs
1 parent b11019b commit b8184cf

12 files changed

+54
-54
lines changed

tests/pos/i2104b.decompiled

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/** Decompiled from out/posTestFromTasty/pos/i2104b/Cons.class */
2-
trait Cons[H, T]() extends java.lang.Object
1+
/** Decompiled from out/posTestFromTasty/pos/i2104b/Cons.tasty */
2+
trait Cons[+H, +T]() extends java.lang.Object
33
object Cons {
44
def apply[H, T](h: H, t: T): Cons[H, T] = scala.Predef.???
55
def unapply[H, T](t: Cons[H, T]): scala.Option[Pair[H, T]] = scala.Predef.???
66
}
7-
/** Decompiled from out/posTestFromTasty/pos/i2104b/Pair.class */
7+
/** Decompiled from out/posTestFromTasty/pos/i2104b/Pair.tasty */
88
case class Pair[A, B](_1: A, _2: B) {
99
override def hashCode(): scala.Int = {
1010
var acc: scala.Int = 2479866
@@ -13,13 +13,13 @@ case class Pair[A, B](_1: A, _2: B) {
1313
scala.runtime.Statics.finalizeHash(acc, 2)
1414
}
1515
override def equals(x$0: scala.Any): scala.Boolean = Pair.this.eq(x$0.asInstanceOf[java.lang.Object]).||(x$0 match {
16-
case x$0: Pair[A, B] @scala.unchecked() =>
16+
case x$0: Pair[A, B] @scala.unchecked =>
1717
Pair.this._1.==(x$0._1).&&(Pair.this._2.==(x$0._2))
1818
case _ =>
1919
false
2020
})
2121
override def toString(): java.lang.String = scala.runtime.ScalaRunTime._toString(Pair.this)
22-
override def canEqual(that: scala.Any): scala.Boolean = that.isInstanceOf[Pair[A, B] @scala.unchecked()]
22+
override def canEqual(that: scala.Any): scala.Boolean = that.isInstanceOf[Pair[A, B] @scala.unchecked]
2323
override def productArity: scala.Int = 2
2424
override def productPrefix: java.lang.String = "Pair"
2525
override def productElement(n: scala.Int): scala.Any = n match {
@@ -31,11 +31,11 @@ case class Pair[A, B](_1: A, _2: B) {
3131
throw new java.lang.IndexOutOfBoundsException(n.toString())
3232
}
3333
}
34-
object Pair extends scala.AnyRef()
35-
/** Decompiled from out/posTestFromTasty/pos/i2104b/Test.class */
34+
object Pair extends scala.AnyRef
35+
/** Decompiled from out/posTestFromTasty/pos/i2104b/Test.tasty */
3636
object Test {
3737
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 {
3838
case Cons(scala.Some(i), scala.None) =>
3939
()
4040
}
41-
}
41+
}

tests/pos/i4678.decompiled

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/** Decompiled from out/posTestFromTasty/pos/i4678/Foo.tasty */
22
class Foo() {
3-
val x: scala.Int = (1: @annot1() @annot2() @annot3() @annot4() @annot5())
3+
val x: scala.Int = (1: @annot1 @annot2 @annot3 @annot4 @annot5)
44
}
55
/** Decompiled from out/posTestFromTasty/pos/i4678/annot1.tasty */
6-
class annot1() extends scala.annotation.Annotation()
6+
class annot1() extends scala.annotation.Annotation
77
/** Decompiled from out/posTestFromTasty/pos/i4678/annot2.tasty */
8-
class annot2() extends scala.annotation.Annotation()
8+
class annot2() extends scala.annotation.Annotation
99
/** Decompiled from out/posTestFromTasty/pos/i4678/annot3.tasty */
10-
class annot3() extends scala.annotation.Annotation()
10+
class annot3() extends scala.annotation.Annotation
1111
/** Decompiled from out/posTestFromTasty/pos/i4678/annot4.tasty */
12-
class annot4() extends scala.annotation.Annotation()
12+
class annot4() extends scala.annotation.Annotation
1313
/** Decompiled from out/posTestFromTasty/pos/i4678/annot5.tasty */
14-
class annot5() extends scala.annotation.Annotation()
14+
class annot5() extends scala.annotation.Annotation

tests/pos/simpleAnnot.decompiled

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
/** Decompiled from out/posTestFromTasty/pos/simpleAnnot/Foo.class */
1+
/** Decompiled from out/posTestFromTasty/pos/simpleAnnot/Foo.tasty */
22
class Foo() {
3-
@annot() type A = scala.Int
4-
@annot() val a: scala.Int = scala.Predef.???
5-
val b: scala.Int @annot() = scala.Predef.???
6-
def c(x: scala.Int): scala.Int = (x: @annot())
3+
@annot type A = scala.Int
4+
@annot val a: scala.Int = scala.Predef.???
5+
val b: scala.Int @annot = scala.Predef.???
6+
def c(x: scala.Int): scala.Int = (x: @annot)
77
}
8-
/** Decompiled from out/posTestFromTasty/pos/simpleAnnot/annot.class */
9-
class annot() extends scala.annotation.Annotation()
8+
/** Decompiled from out/posTestFromTasty/pos/simpleAnnot/annot.tasty */
9+
class annot() extends scala.annotation.Annotation
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/** Decompiled from out/posTestFromTasty/pos/simpleCaseClass-1/A.class */
1+
/** Decompiled from out/posTestFromTasty/pos/simpleCaseClass-1/A.tasty */
22
case class A() {
33
override def hashCode(): scala.Int = 1914112431
44
override def equals(x$0: scala.Any): scala.Boolean = A.this.eq(x$0.asInstanceOf[java.lang.Object]).||(x$0 match {
5-
case x$0: A @scala.unchecked() =>
5+
case x$0: A @scala.unchecked =>
66
true
77
case _ =>
88
false
99
})
1010
override def toString(): java.lang.String = scala.runtime.ScalaRunTime._toString(A.this)
11-
override def canEqual(that: scala.Any): scala.Boolean = that.isInstanceOf[A @scala.unchecked()]
11+
override def canEqual(that: scala.Any): scala.Boolean = that.isInstanceOf[A @scala.unchecked]
1212
override def productArity: scala.Int = 0
1313
override def productPrefix: java.lang.String = "A"
1414
override def productElement(n: scala.Int): scala.Any = n match {
1515
case _ =>
1616
throw new java.lang.IndexOutOfBoundsException(n.toString())
1717
}
1818
}
19-
object A extends scala.Function0[A]
19+
object A extends scala.Function0[A]
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
/** Decompiled from out/posTestFromTasty/pos/simpleCaseClass-2/A.class */
1+
/** Decompiled from out/posTestFromTasty/pos/simpleCaseClass-2/A.tasty */
22
case class A(x: scala.Int) {
33
override def hashCode(): scala.Int = {
44
var acc: scala.Int = 65
55
acc = scala.runtime.Statics.mix(acc, A.this.x)
66
scala.runtime.Statics.finalizeHash(acc, 1)
77
}
88
override def equals(x$0: scala.Any): scala.Boolean = A.this.eq(x$0.asInstanceOf[java.lang.Object]).||(x$0 match {
9-
case x$0: A @scala.unchecked() =>
9+
case x$0: A @scala.unchecked =>
1010
A.this.x.==(x$0.x)
1111
case _ =>
1212
false
1313
})
1414
override def toString(): java.lang.String = scala.runtime.ScalaRunTime._toString(A.this)
15-
override def canEqual(that: scala.Any): scala.Boolean = that.isInstanceOf[A @scala.unchecked()]
15+
override def canEqual(that: scala.Any): scala.Boolean = that.isInstanceOf[A @scala.unchecked]
1616
override def productArity: scala.Int = 1
1717
override def productPrefix: java.lang.String = "A"
1818
override def productElement(n: scala.Int): scala.Any = n match {
@@ -22,4 +22,4 @@ case class A(x: scala.Int) {
2222
throw new java.lang.IndexOutOfBoundsException(n.toString())
2323
}
2424
}
25-
object A extends scala.Function1[scala.Int, A]
25+
object A extends scala.Function1[scala.Int, A]
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
/** Decompiled from out/posTestFromTasty/pos/simpleCaseClass-3/A.class */
1+
/** Decompiled from out/posTestFromTasty/pos/simpleCaseClass-3/A.tasty */
22
case class A[T](x: T) {
33
override def hashCode(): scala.Int = {
44
var acc: scala.Int = 65
55
acc = scala.runtime.Statics.mix(acc, scala.runtime.Statics.anyHash(A.this.x))
66
scala.runtime.Statics.finalizeHash(acc, 1)
77
}
88
override def equals(x$0: scala.Any): scala.Boolean = A.this.eq(x$0.asInstanceOf[java.lang.Object]).||(x$0 match {
9-
case x$0: A[T] @scala.unchecked() =>
9+
case x$0: A[T] @scala.unchecked =>
1010
A.this.x.==(x$0.x)
1111
case _ =>
1212
false
1313
})
1414
override def toString(): java.lang.String = scala.runtime.ScalaRunTime._toString(A.this)
15-
override def canEqual(that: scala.Any): scala.Boolean = that.isInstanceOf[A[T] @scala.unchecked()]
15+
override def canEqual(that: scala.Any): scala.Boolean = that.isInstanceOf[A[T] @scala.unchecked]
1616
override def productArity: scala.Int = 1
1717
override def productPrefix: java.lang.String = "A"
1818
override def productElement(n: scala.Int): scala.Any = n match {
@@ -22,4 +22,4 @@ case class A[T](x: T) {
2222
throw new java.lang.IndexOutOfBoundsException(n.toString())
2323
}
2424
}
25-
object A extends scala.AnyRef()
25+
object A extends scala.AnyRef

tests/pos/simpleCaseObject.decompiled

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
/** Decompiled from out/posTestFromTasty/pos/simpleCaseObject/foo/Foo.class */
1+
/** Decompiled from out/posTestFromTasty/pos/simpleCaseObject/foo/Foo.tasty */
22
package foo {
33
case object Foo {
44
override def hashCode(): scala.Int = 1045991777
55
override def toString(): java.lang.String = "Foo"
6-
override def canEqual(that: scala.Any): scala.Boolean = that.isInstanceOf[foo.Foo.type @scala.unchecked()]
6+
override def canEqual(that: scala.Any): scala.Boolean = that.isInstanceOf[foo.Foo.type @scala.unchecked]
77
override def productArity: scala.Int = 0
88
override def productPrefix: java.lang.String = "Foo"
99
override def productElement(n: scala.Int): scala.Any = n match {
1010
case _ =>
1111
throw new java.lang.IndexOutOfBoundsException(n.toString())
1212
}
1313
}
14-
}
14+
}

tests/pos/simpleClass-2.decompiled

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/** Decompiled from out/posTestFromTasty/pos/simpleClass-2/foo/A.class */
1+
/** Decompiled from out/posTestFromTasty/pos/simpleClass-2/foo/A.tasty */
22
package foo {
3-
class A() extends foo.B()
3+
class A() extends foo.B
44
}
5-
/** Decompiled from out/posTestFromTasty/pos/simpleClass-2/foo/B.class */
5+
/** Decompiled from out/posTestFromTasty/pos/simpleClass-2/foo/B.tasty */
66
package foo {
77
class B()
88
}

tests/pos/simpleClass.decompiled

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/** Decompiled from out/posTestFromTasty/pos/simpleClass/foo/A.class */
1+
/** Decompiled from out/posTestFromTasty/pos/simpleClass/foo/A.tasty */
22
package foo {
33
class A()
44
}
5-
/** Decompiled from out/posTestFromTasty/pos/simpleClass/foo/B.class */
5+
/** Decompiled from out/posTestFromTasty/pos/simpleClass/foo/B.tasty */
66
package foo {
7-
class B() extends foo.A()
7+
class B() extends foo.A
88
}

tests/pos/simpleSuper.decompiled

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
/** Decompiled from out/posTestFromTasty/pos/simpleSuper/foo/A.class */
1+
/** Decompiled from out/posTestFromTasty/pos/simpleSuper/foo/A.tasty */
22
package foo {
33
class A() {
44
def foo: scala.Int = 1
55
}
66
}
7-
/** Decompiled from out/posTestFromTasty/pos/simpleSuper/foo/B.class */
7+
/** Decompiled from out/posTestFromTasty/pos/simpleSuper/foo/B.tasty */
88
package foo {
99
trait B() extends java.lang.Object {
1010
def foo: scala.Int = 2
1111
}
1212
}
13-
/** Decompiled from out/posTestFromTasty/pos/simpleSuper/foo/C.class */
13+
/** Decompiled from out/posTestFromTasty/pos/simpleSuper/foo/C.tasty */
1414
package foo {
15-
class C() extends foo.A() with foo.B {
15+
class C() extends foo.A with foo.B {
1616
override def foo: scala.Int = super.foo.+(super[B].foo)
1717
}
18-
}
18+
}

tests/pos/t116.decompiled

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/** Decompiled from out/posTestFromTasty/pos/t116/C.class */
1+
/** Decompiled from out/posTestFromTasty/pos/t116/C.tasty */
22
class C() {
33
def this(x: scala.Int) = {
44
this()
5-
class D() extends C()
5+
class D() extends C
66
()
77
}
8-
}
8+
}

tests/pos/t6225b.decompiled

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/** Decompiled from out/posTestFromTasty/pos/t6225b/library/x/X.class */
1+
/** Decompiled from out/posTestFromTasty/pos/t6225b/library/x/X.tasty */
22
package library.x {
33
class X() {
44
class Foo()
55
}
66
}
7-
/** Decompiled from out/posTestFromTasty/pos/t6225b/library/y/package.class */
7+
/** Decompiled from out/posTestFromTasty/pos/t6225b/library/y/package.tasty */
88
package library {
9-
package object y extends library.x.X()
10-
}
9+
package object y extends library.x.X
10+
}

0 commit comments

Comments
 (0)