1
我想在本地機器上玩Kotlin HTML builder example。arrayListOf和hashMapOf:未解決的參考
在
abstract class Tag(val name: String) : Element {
val children = arrayListOf<Element>()
val attributes = hashMapOf<String, String>()
IntelliJ IDEA的怒罵arrayListOf
和hashMapOf
是懸而未決。
導入kotlin.collections
(import kotlin.collections.*
),其中arrayListOf定義,並沒有幫助。
我該如何解決這些錯誤?