Add a bytecode test that checks inlining of adapted references

This commit is contained in:
pyos
2020-09-25 16:30:16 +02:00
committed by max-kammerer
parent 9a3507af59
commit 6dc08cb2fd
10 changed files with 56 additions and 0 deletions
@@ -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)