Skip to content

Instantly share code, notes, and snippets.

@numa08
Created June 6, 2016 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save numa08/5acf1bea18e82f60ccdf563b6106e08d to your computer and use it in GitHub Desktop.
Save numa08/5acf1bea18e82f60ccdf563b6106e08d to your computer and use it in GitHub Desktop.
val_is_not_final.kt
fun failedSuruyo() {
throw Exception("error")
}
fun main(args: Array<String>) {
val res : String
try {
res = "succedd"
failedSuruyo()
} catch (exp : Exception) {
res = "failed"
}
println(res) // failed
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment