mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
246 B
Kotlin
Vendored
14 lines
246 B
Kotlin
Vendored
// 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"
|
|
}
|