mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
8 lines
155 B
Kotlin
8 lines
155 B
Kotlin
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER
|
|
|
|
fun <T> foo(f : (T) -> T) : T = throw Exception()
|
|
|
|
fun test() {
|
|
val a : Int = foo(fun f(x) = x)
|
|
}
|