Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/anySuperCall.kt
T
2021-10-11 12:09:52 +03:00

14 lines
249 B
Kotlin
Vendored

// WITH_RUNTIME
// IGNORE_BACKEND: JVM
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
@kotlin.jvm.JvmInline
value class A(val x: Int) {
fun f(): Int = super.hashCode()
}
fun box(): String {
val a = A(1).f()
return "OK"
}