Files
kotlin-fork/compiler/testData/codegen/bytecodeText/inlineClasses/resultApiDoesntCallSpecializedEquals.kt
T
2020-05-20 07:19:30 +03:00

14 lines
316 B
Kotlin
Vendored

// !API_VERSION: 1.3
// 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.equals-impl0