```class Thing(parameter: Int) : List<Int> b...
# announcements
l
Copy code
class Thing(parameter: Int) : List<Int> by property { //unresolved reference: property
	val property = listOf(parameter)
}
why isn't this allowed?
b
Because implemented interfaces and super classes are initialised before Thing and its members.
l
thanks
b
You can inline that listOf and then retrieve it by casting this to that interface
e
or add another constructor,
class Thing private constructor(val property: List<Int>) : List<Int> by property { constructor(parameter: Int) : this(listOf(parameter)) }