[IR] Supported inlining of adapted references + tests
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// DONT_TARGET_EXACT_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: BINDING_RECEIVERS
|
||||
|
||||
// FILE: 1.kt
|
||||
package test
|
||||
|
||||
inline fun foo(x: () -> Unit): String {
|
||||
x()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
inline fun String.id(s: String = this, vararg xs: Int): String = s
|
||||
|
||||
// FILE: 2.kt
|
||||
import test.*
|
||||
|
||||
fun box(): String = foo("Fail"::id)
|
||||
Reference in New Issue
Block a user