mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
15 lines
282 B
Kotlin
Vendored
15 lines
282 B
Kotlin
Vendored
// 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"
|
|
}
|