[K/N][IR] Ref to expect property in actual declaration is not remapped

^KT-36880
This commit is contained in:
Dmitriy Dolovov
2021-03-31 18:40:03 +03:00
parent 393aaac2b9
commit 003d07b51e
5 changed files with 41 additions and 1 deletions
@@ -0,0 +1,11 @@
expect class Foo {
val p: Int
fun bar(r: () -> Int = this::p): Int
}
actual class Foo {
actual val p = 42
actual fun bar(r: () -> Int) = r()
}
fun main() {
println(Foo().bar())
}