Last active
November 7, 2019 09:52
-
-
Save Jesus/fbd300ef6a5149cb67aa5a4b809db110 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 hithere(n: Int): Int { | |
return n | |
} | |
fun hithere(): String { | |
return "I'm not a number!" | |
} | |
fun main() { | |
val a = hithere(3) | |
val b = hithere() | |
println("a is: ${a::class.simpleName}") // => "a is: Int" | |
println("b is: ${b::class.simpleName}") // => "b is: String" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment