1071919706
Also remove any mentions of NewInference, and rename some tests.
13 lines
234 B
Kotlin
Vendored
13 lines
234 B
Kotlin
Vendored
// FILE: 1.kt
|
|
package test
|
|
|
|
inline fun foo(vararg l: Long, s: String = "OK"): String =
|
|
if (l.size == 0) s else "Fail"
|
|
|
|
inline fun bar(f: () -> String): String = f()
|
|
|
|
// FILE: 2.kt
|
|
import test.*
|
|
|
|
fun box(): String = bar(::foo)
|