Join Slack
Powered by
Say, is the stdlib any help with "union" types, wh...
# announcements
m
mbickel
05/31/2016, 10:41 AM
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`"?
3
Views
Open in Slack
Previous
Next