Files
kotlin/compiler/testData/codegen/bytecodeListing/callableNameIntrinsic.kt
Alexander Udalov 91e486d020 Fix KCallable#name intrinsic for bound references
Do not skip generation of the left-hand side because it may produce side
effects

 #KT-12995 Fixed
2016-07-26 13:48:20 +03:00

14 lines
203 B
Kotlin
Vendored

class A {
val a = ""
fun b() = ""
fun test() {
val a = A::a.name
val b = A::b.name
val c = ::A.name
val d = this::a.name
val e = A()::b.name
}
}