Instantly share code, notes, and snippets.

What would you like to do?
fun test() {
var mood = "I am sad"
run {
val mood = "I am happy"
println(mood) // I am happy
println(mood) // I am sad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment