mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
12 lines
98 B
Kotlin
Vendored
12 lines
98 B
Kotlin
Vendored
val z = 30
|
|
val x: Int
|
|
|
|
if (true) {
|
|
fun foo() = z + 20
|
|
x = foo()
|
|
}
|
|
|
|
x
|
|
|
|
// expected: rv: 50
|