mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
14 lines
196 B
Kotlin
14 lines
196 B
Kotlin
fun box() : String {
|
|
|
|
fun <T> local(s : T) : T {
|
|
return s;
|
|
}
|
|
|
|
fun test(s : Int) : Int {
|
|
return local(s)
|
|
}
|
|
|
|
if (test(10) != 10) return "fail1"
|
|
|
|
return "OK"
|
|
} |