1071919706
Also remove any mentions of NewInference, and rename some tests.
15 lines
275 B
Kotlin
Vendored
15 lines
275 B
Kotlin
Vendored
fun foo(s: String = "kotlin", vararg t: String): Boolean {
|
|
if (s != "kotlin") throw AssertionError(s)
|
|
if (t.size != 0) throw AssertionError(t.size.toString())
|
|
return true
|
|
}
|
|
|
|
fun bar(f: () -> Unit) {
|
|
f()
|
|
}
|
|
|
|
fun box(): String {
|
|
bar(::foo)
|
|
return "OK"
|
|
}
|