return 100 } set(id) { println(id) } } class User { var id by IdProp() } class IdPref: ReadWriteProperty<Any, Long> { override fun getValue(thisRef: Any, property: KProperty<*>): Long { return 100 } override fun setValue(thisRef: Any, property: KProperty<*>, value: Long) { println(value) } }