https://kotlinlang.org logo
#language-proposals
Title
# language-proposals
m

mg6maciej

05/02/2017, 7:16 AM
Just like it is both
Int
and
String
in this example 😉
Copy code
val any: Any = Unit
if (any is String && any is Int) {
    val lengthPlusValue = any + any.length
}