brabo-hi
08/06/2018, 1:54 AMgildor
08/06/2018, 2:12 AMarray
has type Array<Int> instead of IntArray, those are different types
Use intArrayOf
builder function or convert Array<Int> to IntArray using .toIntArray()
extension functiongildor
08/06/2018, 2:13 AMInteger[]
in Java, IntArray is int[]
, so second one is primitivebrabo-hi
08/06/2018, 2:15 AM