More tests on casts on receiver of inline class type

This commit is contained in:
Dmitry Petrov
2018-09-24 10:46:10 +03:00
parent 88cc900dc7
commit c1bb3479df
10 changed files with 154 additions and 100 deletions
@@ -0,0 +1,10 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
inline fun <T> T.runInlineExt(fn: T.() -> String) = fn()
inline class R(private val r: String) {
fun test() = runInlineExt { r }
}
fun box() = R("OK").test()