Is there a way to extract a boxed variable’s inten...
# announcements
r
Is there a way to extract a boxed variable’s intended type even when it’s current value is null?
Copy code
fun Foo(value: String?) {
    value?.trim() ?: //do something with the String type here
}