mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
16 lines
404 B
Kotlin
Vendored
16 lines
404 B
Kotlin
Vendored
// !API_VERSION: LATEST
|
|
// IGNORE_BACKEND: JVM_IR
|
|
// WITH_RUNTIME
|
|
// FILE: test.kt
|
|
fun test() {
|
|
val result = Result.success("yes!")
|
|
val other = Result.success("nope")
|
|
if (result == other) println("==")
|
|
if (result != other) println("!=")
|
|
}
|
|
|
|
// @TestKt.class:
|
|
// 0 INVOKESTATIC kotlin/Result.box-impl
|
|
// 0 INVOKEVIRTUAL kotlin/Result.unbox-impl
|
|
// 2 INVOKESTATIC kotlin/Result.equals-impl0
|