d1a8f57740
See #KT-37163 for details
13 lines
188 B
Kotlin
Vendored
13 lines
188 B
Kotlin
Vendored
// ADDITIONAL_COMPILER_ARGUMENTS: -Xnew-inference
|
|
|
|
package common
|
|
|
|
fun interface KRunnable {
|
|
fun invoke(): String
|
|
}
|
|
|
|
fun foo(k: KRunnable) = k.invoke()
|
|
|
|
fun test() {
|
|
foo { "OK" }
|
|
} |