https://kotlinlang.org logo
#announcements
Title
# announcements
r

rook

08/15/2017, 1:29 PM
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
}