Files
kotlin-fork/compiler/testData/codegen/bytecodeText/inlineClasses/mangledInlineClassInterfaceImplementation.kt
T
Ilya Chernikov 5b3816cce5 Test infra: refactor IGNORE_BACKEND directive
treat it as a general one, introduce *_K1 and *_K2 variants for
more specific ignoring
2022-11-12 16:28:23 +01:00

20 lines
461 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND_K2: 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