joelpedraza
08/02/2017, 4:46 PMIt doesn't though:already meansfoo?[i]
foo?.get(i)
class Zeros {
operator fun get(i: Int): Int? {
return 0
}
}
fun main(vararg args: String) {
val zeroes: Zeros? = Zeros()
zeroes?[0] // Unexpected tokens (use ';' to separate expressions on the same line)
}