How are the below two conditions evaluated. Where ...
# announcements
a
How are the below two conditions evaluated. Where
UnknownHost
is a data class. Using any of the two works.
Copy code
when (x) {
            is UnknownHost -> {
               // do something
            }

            UnknownHost -> {
                // do something
            }
        }