<error: cannot access 'arrayOfNulls': it is intern...
# stackoverflow
r
error: cannot access 'arrayOfNulls': it is internal in 'kotlin.collections' what is wrong with this declaration if I want an array of List? that contains Int private val set = arrayOfNulls(10) { mutableListOf() } kotlin compiker says Line 3: Char 23: error: cannot access 'arrayOfNulls': it is internal in 'kotlin.collections' private val set = arrayOfNulls(10) { mutableListOf() } But arrayOfNulls exists if you declare it as private val set = arrayOfNulls(5)