IC: call JvmDefault method of inline class using boxed receiver
#KT-43698 Fixed
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// !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: InlineClass?) = x?.ok() ?: "Failed"
|
||||
|
||||
fun box() = test(InlineClass(""))
|
||||
Reference in New Issue
Block a user