9607739d30
#KT-37434 Fixed
14 lines
216 B
Kotlin
Vendored
14 lines
216 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" }
|
|
foo(KRunnable { "OK "})
|
|
} |