Kotlin array initialization throws null pointer exception

前端 未结 1 1967
感动是毒
感动是毒 2021-01-24 07:26

I\'m a total beginner with kotlin, and I\'m trying to initialize an array using the constructor that accepts a size and a function. This is what I have:

fun main         


        
1条回答
  •  一个人的身影
    2021-01-24 07:56

    This is a bug in the AOT-compiled (OS-dependent) version of the Kotlin compiler. Please see the issue for updates.

    0 讨论(0)
提交回复
热议问题