15 lines
271 B
Kotlin
Vendored
15 lines
271 B
Kotlin
Vendored
// !LANGUAGE: +UnitConversionsOnArbitraryExpressions
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
|
|
|
fun interface KRunnable {
|
|
fun run()
|
|
}
|
|
|
|
fun foo(r: KRunnable) {}
|
|
|
|
abstract class SubInt : () -> Int
|
|
|
|
fun test(f: () -> Int, s: SubInt) {
|
|
foo(f)
|
|
foo(s)
|
|
} |