From 7025be9a468419ca6076d78f8da32c6a667fc829 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Wed, 30 Mar 2016 14:02:26 -0700 Subject: Bring back AbstractFunction parent Jason points out we still need it for bytecode efficiency, due to mixin forwarders. --- test/files/run/delambdafy_uncurry_byname_inline.check | 2 +- test/files/run/delambdafy_uncurry_inline.check | 2 +- test/files/run/t6028.check | 6 ++---- test/files/run/t6555.check | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) (limited to 'test/files/run') diff --git a/test/files/run/delambdafy_uncurry_byname_inline.check b/test/files/run/delambdafy_uncurry_byname_inline.check index e1ee4c29e2..d96a995f44 100644 --- a/test/files/run/delambdafy_uncurry_byname_inline.check +++ b/test/files/run/delambdafy_uncurry_byname_inline.check @@ -7,7 +7,7 @@ package { }; def bar(x: () => Int): Int = x.apply(); def foo(): Int = Foo.this.bar({ - @SerialVersionUID(value = 0) final class $anonfun extends Object with () => Int with Serializable { + @SerialVersionUID(value = 0) final class $anonfun extends scala.runtime.AbstractFunction0[Int] with Serializable { def (): <$anon: () => Int> = { $anonfun.super.(); () diff --git a/test/files/run/delambdafy_uncurry_inline.check b/test/files/run/delambdafy_uncurry_inline.check index 479e9409fa..5521cc4a2c 100644 --- a/test/files/run/delambdafy_uncurry_inline.check +++ b/test/files/run/delambdafy_uncurry_inline.check @@ -7,7 +7,7 @@ package { }; def bar(): Unit = { val f: Int => Int = { - @SerialVersionUID(value = 0) final class $anonfun extends Object with Int => Int with Serializable { + @SerialVersionUID(value = 0) final class $anonfun extends scala.runtime.AbstractFunction1[Int,Int] with Serializable { def (): <$anon: Int => Int> = { $anonfun.super.(); () diff --git a/test/files/run/t6028.check b/test/files/run/t6028.check index f21b77fdc7..532d177300 100644 --- a/test/files/run/t6028.check +++ b/test/files/run/t6028.check @@ -24,10 +24,9 @@ package { (new <$anon: Function0>(T.this, tryyParam, tryyLocal): Function0) } }; - @SerialVersionUID(value = 0) final class $anonfun$foo$1 extends Object with Function0$mcI$sp with Serializable { + @SerialVersionUID(value = 0) final class $anonfun$foo$1 extends scala.runtime.AbstractFunction0$mcI$sp with Serializable { def ($outer: T, methodParam$1: Int, methodLocal$1: Int): <$anon: Function0> = { $anonfun$foo$1.super.(); - $anonfun$foo$1.super./*Function0*/$init$(); () }; final def apply(): Int = $anonfun$foo$1.this.apply$mcI$sp(); @@ -67,10 +66,9 @@ package { T.this.MethodLocalObject$lzycompute$1(barParam$1, MethodLocalObject$module$1) else MethodLocalObject$module$1.elem.$asInstanceOf[T#MethodLocalObject$2.type](); - @SerialVersionUID(value = 0) final class $anonfun$tryy$1 extends Object with Function0$mcV$sp with Serializable { + @SerialVersionUID(value = 0) final class $anonfun$tryy$1 extends scala.runtime.AbstractFunction0$mcV$sp with Serializable { def ($outer: T, tryyParam$1: Int, tryyLocal$1: runtime.IntRef): <$anon: Function0> = { $anonfun$tryy$1.super.(); - $anonfun$tryy$1.super./*Function0*/$init$(); () }; final def apply(): Unit = $anonfun$tryy$1.this.apply$mcV$sp(); diff --git a/test/files/run/t6555.check b/test/files/run/t6555.check index fef689a80d..e3b467ce7c 100644 --- a/test/files/run/t6555.check +++ b/test/files/run/t6555.check @@ -6,7 +6,7 @@ package { () }; private[this] val f: Int => Int = { - @SerialVersionUID(value = 0) final class $anonfun extends Object with Int => Int with Serializable { + @SerialVersionUID(value = 0) final class $anonfun extends scala.runtime.AbstractFunction1$mcII$sp with Serializable { def (): <$anon: Int => Int> = { $anonfun.super.(); () -- cgit v1.2.3