标签: list kotlin null nullable
我必须声明一个类型为可空列表(包含字符串)的类参数,列表默认值=空
data class Riga( var frase1 : List?<String>= null )
这正在提高:
Property getter or setter expected One type argument expected for interface List<out E>
答案 0 :(得分:0)
var frase1 : List<String>? = null