Added test

This commit is contained in:
Igor Chevdar
2019-01-31 14:52:02 +03:00
parent 0ca28914a5
commit c257af31f4
6 changed files with 41 additions and 0 deletions
@@ -0,0 +1,16 @@
fun foo(x: Int = 42) = x
class C {
val s: String
init {
val x = foo()
if (x == 42)
s = "OK"
else
s = "fail"
}
}
fun box(): String {
return C().s
}