ScriptGenTest: more

This commit is contained in:
Stepan Koltsov
2012-05-31 19:31:40 +04:00
parent 896b2fa773
commit 0f8c449f55
3 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
val z = 30
val x: Int
if (true) {
fun foo() = z + 20
x = foo()
}
x
// expected: 50