apatrida
01/28/2016, 11:04 PMtoTypedArray()
causing it on many things. And I know this is odd code because when modernized to the following, no warning:
private val people = listOf(
Person(1, "Frank", 30),
Person(2, "Domingo", 19),
Person(3, "Mariana", 22),
Person(4, "Lucia", 31)
).associateByTo(HashMap()) { it.id }
but this makes the warning:
val x = listOf(1,2,3).map { it to it * 4 }.toTypedArray()