Say, is the stdlib any help with "union" types, wh...
# announcements
m
Say, is the stdlib any help with "union" types, where a class consists of two fields of which only one is non-null? Classic example
data class Resp(val data: String?, val err: Throwable?)
- can I somehow say "give me all non-null
data
elements and make kotlinc aware that they are `String`"?