Files
kotlin-fork/backend.native/tests/codegen/dataflow/scope1.kt
T
Svyatoslav Scherbina e2dbeae85e backend: add tests for try-catch-finally and throwing exceptions
also add some tests for bugs with unreachable code handling and variables
2016-11-28 20:24:27 +07:00

10 lines
114 B
Kotlin

var b = true
fun main(args: Array<String>) {
var x = 1
if (b) {
var x = 2
}
println(x)
}