convert .length on arrays to .size
This commit is contained in:
committed by
Pavel V. Talanov
parent
5664283a30
commit
21b280f413
@@ -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!!
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user