Created
July 5, 2020 22:12
-
-
Save jimmymorales/9b269fbe94796dc995e0c94bf41dd12f to your computer and use it in GitHub Desktop.
Operador `is` en Kotlin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() { | |
val obj: Any = "Kotlin!" | |
if (obj is String) { | |
println("obj es un String") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment