Files
kotlin-fork/compiler/testData/multiplatform/funInterfaces/js.kt
T
2020-04-15 02:37:34 +03:00

14 lines
213 B
Kotlin
Vendored

// ADDITIONAL_COMPILER_ARGUMENTS: -Xnew-inference
package js
fun interface KRunnable {
fun invoke(): String
}
fun foo(k: KRunnable) = k.invoke()
fun test() {
foo { "OK" }
foo(KRunnable { "OK " })
}