More tests on casts on receiver of inline class type
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
fun <T> T.runExt(fn: T.() -> String) = fn()
|
||||
|
||||
inline class R(private val r: Int) {
|
||||
fun test() = runExt { "OK" }
|
||||
}
|
||||
|
||||
fun box() = R(0).test()
|
||||
Reference in New Issue
Block a user