Closed
Description
This is result of interaction between #342 and #480:
object O {
val x: Function1[String, String] = a => a
}
after LambdaLift becomes
final module class O$ extends Object { this: <notype> =>
def <init>(): O$ = {
super()
O.x$$local = {
closure($anonfun$$init$$1)
}
()
}
private val x$$local: Function1
<accessor> def x(): Function1 = O.x$$local
private def $anonfun$$init$$1(a: String): String = a
}
The type of $anonfun$$init$$1
in closure is NoPrefix($anonfun$$init$$1)
, ie doesn't include that this private function should be called on this
.
this caused #470.
Metadata
Metadata
Assignees
Labels
No labels