Files
kotlin-fork/js/js.translator/testData/box/callableReference/function/classMemberDirectCache.kt
T
2018-06-04 18:59:40 +03:00

15 lines
235 B
Kotlin
Vendored

// IGNORE_BACKEND: JS
package foo
class A(val v: String) {
fun foo() = v
}
fun box(): String {
val aRef1 = A::foo
val aRef2 = A::foo
if (aRef1 !== aRef2) return "Fail != "
return aRef1(A("O")) + aRef2(A("K"))
}