voddan
04/27/2016, 8:12 AMimport java.util.*
class Foo<E: Any>() {
init {
// ok
ArrayList<E?>()
mutableListOf<E?>()
listOf<E>()
// For every folllowing expression it says
// ERROR: Cannot use 'T' as reified type parameter. Use a class instead.
// (I have no idea where the `T` comes from)
arrayOf<E?>()
Array<E?>(size = 1, init = { i -> null })
arrayOfNulls<E>(6)
}
}