<@U41NT8LUW> You can use something like that: ```...
# announcements
s
@marcoferrer You can use something like that:
Copy code
operator fun <T> FieldDelegate.getValue(thisRef: Any?, property: KProperty<*>): T {
    @Suppress("UNCHECKED_CAST")
    return when(property.returnType) {
        String::class -> ""
        Int::class -> 42
        else -> null
    } as T
}
Also please start class names with uppercase 😊
👍 1
m
Perfect! Thx for help. This pointed me in the right direction.