d1a8f57740
See #KT-37163 for details
13 lines
184 B
Kotlin
Vendored
13 lines
184 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" }
|
|
} |