Add test for KT-48230

This commit is contained in:
pyos
2021-08-12 15:58:01 +02:00
committed by Space
parent 21f7e16ee6
commit 6d7eb2bd21
12 changed files with 77 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
inline fun withO(block: String.() -> String) = "O".block()
// FILE: 2.kt
interface I {
val k: String
fun foo() = withO { this + k }
}
fun box(): String = object : I {
override val k = "K"
}.foo()