From 3904c3216c741b387d81754e55aa079ce4218d06 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Tue, 29 Mar 2016 18:18:09 -0700 Subject: LMF cannot instantiate SAM of trait with non-trait superclass Also, drop AbstractFunction for parent of anonymous subclass of function type that must have its class spun up at compile time (rather than at linkage time by LambdaMetaFactory). This revealed an old problem with typedTemplate, in which parent types may be normalized at the level of trees, while this change does not get propagated to the class's info in time for the constructor to be located when we type check the primary constructor. --- test/files/run/delambdafy_uncurry_inline.check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/files/run/delambdafy_uncurry_inline.check') diff --git a/test/files/run/delambdafy_uncurry_inline.check b/test/files/run/delambdafy_uncurry_inline.check index 5521cc4a2c..479e9409fa 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 scala.runtime.AbstractFunction1[Int,Int] with Serializable { + @SerialVersionUID(value = 0) final class $anonfun extends Object with Int => Int with Serializable { def (): <$anon: Int => Int> = { $anonfun.super.(); () -- cgit v1.2.3