Files
kotlin-fork/compiler/testData/diagnostics/tests/kt310.kt
T
Alexander Udalov 128c938965 Make Array.size() a function instead of a property
Also add a deprecated extension property to help migration. This is done to
unify getting size of arrays and collections
2014-11-17 15:02:38 +03:00

4 lines
72 B
Kotlin

fun f(c: String): Int {
return c.<!FUNCTION_EXPECTED!>length<!>()
}