0dc5f3ac00
#KT-43698 Fixed
17 lines
300 B
Kotlin
Vendored
17 lines
300 B
Kotlin
Vendored
// !JVM_DEFAULT_MODE: all
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// JVM_TARGET: 1.8
|
|
|
|
interface IOk {
|
|
fun ok(): String = "OK"
|
|
}
|
|
|
|
inline class InlineClass(val s: String) : IOk
|
|
|
|
fun test(x: Any): String {
|
|
return if (x is InlineClass) x.ok() else "FAIL"
|
|
}
|
|
|
|
fun box() = test(InlineClass("Dummy"))
|