FIR: set constructor parameter scope correctly for designated transformer

This commit is contained in:
Mikhail Glukhikh
2019-07-11 20:20:18 +03:00
parent b8c3947827
commit 2d74dac4f2
5 changed files with 25 additions and 6 deletions
@@ -0,0 +1,3 @@
class Bar(name: () -> String) {
val name = name()
}
@@ -0,0 +1,10 @@
FILE: propertyFromParameter.kt
public final class Bar : R|kotlin/Any| {
public constructor(name: R|kotlin/Function0<kotlin/String>|): R|Bar| {
super<R|kotlin/Any|>()
}
public final val name: <ERROR TYPE REF: cycle> = R|<local>/name|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/String|>|()
public get(): <ERROR TYPE REF: cycle>
}