mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
15 lines
276 B
Kotlin
Vendored
15 lines
276 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// IGNORE_BACKEND: JS
|
|
|
|
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"
|
|
}
|