Files
kotlin-fork/compiler/testData/codegen/bytecodeText/inlineClasses/mangledInlineClassInterfaceImplementation.kt
T
Mark Punzalan 238cc7c257 [FIR] Enable BytecodeText tests for FIR.
143 out of 767 tests (18.6%) are currently failing.
2020-09-29 10:21:21 +03:00

20 lines
462 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND_FIR: JVM_IR
interface A<T> {
fun foo(a: T): String
}
inline class Foo(val x: Long) : A<Foo> {
override fun foo(a: Foo): String = if (x != a.x) "OK" else "FAIL"
}
fun box(): String {
return Foo(0L).foo(Foo(1L))
}
// 1 public foo-GWb7d6U\(J\)Ljava/lang/String;
// 1 public synthetic bridge foo\(Ljava/lang/Object;\)Ljava/lang/String;
// 1 public static foo-GWb7d6U\(JJ\)Ljava/lang/String;
// 0 foo\(J