mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Fixed KT-14939: use expected receiver type when generating receiver code in get/set methods for bound property references.
Otherwise we have VerifyError for bound receiver 'null' of type 'Nothing?', which is mapped to 'java.lang.Void'.
TODO: proper equality comparison for property accessors ('x::prop.getter', 'x::prop.setter').
10 lines
125 B
Kotlin
Vendored
10 lines
125 B
Kotlin
Vendored
class A {
|
|
fun foo() {}
|
|
val bar = 42
|
|
}
|
|
|
|
val aFoo = A()::foo
|
|
val aBar = A()::bar
|
|
val A_foo = A::foo
|
|
val A_bar = A::bar
|