arrayListOf和hashMapOf:未解析的引用
我试图在我的本地机器上玩Kotlin HTML builder的例子 。
在
abstract class Tag(val name: String) : Element { val children = arrayListOf() val attributes = hashMapOf()
IntelliJ的想法hashMapOf
地讨论arrayListOf
和hashMapOf
。
导入kotlin.collections
( import kotlin.collections.*
),其中arrayListOf被定义,没有帮助。
我怎样才能解决这些错误?
确保你使用最新的1.0 kotlin插件和1.0运行时。 之后,无效IJ缓存并重新启动IJ可能是一个好主意。