Add a bytecode test that checks inlining of adapted references
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// FILE: 1.kt
|
||||
package test
|
||||
|
||||
inline fun foo(x: (String) -> String): String = x("OK")
|
||||
|
||||
fun String.bar(vararg xs: String) = xs[0]
|
||||
|
||||
// FILE: 2.kt
|
||||
import test.*
|
||||
|
||||
fun box() = foo("fail"::bar)
|
||||
Reference in New Issue
Block a user