convert .length on arrays to .size

This commit is contained in:
Dmitry Jemerov
2012-06-01 15:54:13 +02:00
committed by Pavel V. Talanov
parent 5664283a30
commit 21b280f413
3 changed files with 23 additions and 7 deletions
@@ -0,0 +1,5 @@
class Test {
public static int foo(String[] args) {
return args.length;
}
}
@@ -0,0 +1,7 @@
open class Test() {
class object {
public open fun foo(args : Array<String?>?) : Int {
return args?.size!!
}
}
}