0dc5f3ac00
#KT-43698 Fixed
17 lines
305 B
Kotlin
Vendored
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")))
|