<@U0ZFBBUBU> you can validate constructor properti...
# language-proposals
k
@groostav you can validate constructor properties using an
init
block:
Copy code
data class Person(val age: Int) {
    init {
        require(age in 0..100)
    }
}
­čĹŹ 3