Files
kotlin-fork/compiler/testData/codegen/box/callableReference/function/local/equalsHashCode.kt
T
2021-10-02 06:14:35 +00:00

17 lines
341 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS, JS_IR
// IGNORE_BACKEND: JS_IR_ES6
fun box(): String {
fun bar() {}
fun baz() {}
if (!::bar.equals(::bar)) return "Fail 1"
if (::bar.hashCode() != ::bar.hashCode()) return "Fail 2"
if (::bar == ::baz) return "Fail 3"
return "OK"
}