Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultGeneric.kt
T
2020-12-08 04:33:36 +01:00

17 lines
305 B
Kotlin
Vendored

// !JVM_DEFAULT_MODE: all
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// JVM_TARGET: 1.8
class Cell<T>(val x: T)
interface IOk {
fun ok(): String = "OK"
}
inline class InlineClass(val s: String) : IOk
fun test(cell: Cell<InlineClass>): String = cell.x.ok()
fun box() = test(Cell(InlineClass("FAIL")))