LastExceed
05/01/2021, 11:26 AMclass Thing(parameter: Int) : List<Int> by property { //unresolved reference: property
val property = listOf(parameter)
}
why isn't this allowed?Big Chungus
05/01/2021, 11:36 AMLastExceed
05/01/2021, 11:36 AMBig Chungus
05/01/2021, 11:36 AMephemient
05/01/2021, 4:35 PMclass Thing private constructor(val property: List<Int>) : List<Int> by property { constructor(parameter: Int) : this(listOf(parameter)) }