a very simple question regarding Kotlin. What if a global variable (in function context) has the same name as a local variable declared within if statement. As you can see there are two msg variables, how to call outsider msg within if statement.
fun main() {
var point = 100
var msg = "Kotlin"
if(point >= 50) {
var msg = "Java"
// print msg Java
println(msg)
// How to print msg Kotlin instead of Java
println(msg)
}
}