miha-x64
03/19/2017, 10:37 PMfun a(items: Array<Item>) cannot be invoked like this:
fun b(vararg items: Item) {
a(items)
}
because... items is Array<out Item>, not Array<Item>.
This also means that I can't write to this array. Why? This may lead to situations when some code cannot be converted from Java.minikloon
03/20/2017, 2:26 AMa(items as Array<Item>)marcinmoskala
03/20/2017, 7:45 AMArray<out Item> is not accepted as Array<Item> 😕