Added test
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user