mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Rename: casted -> cast
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
fun f(x: Any?): String {
|
||||
if (x is Array<String>) {
|
||||
for (i in x) {
|
||||
return i
|
||||
}
|
||||
}
|
||||
return "FAIL"
|
||||
}
|
||||
|
||||
fun box(): String = f(Array<String>(1, {"OK"}))
|
||||
Reference in New Issue
Block a user