[FIR-TEST] Update testdata of old FE contracts tests

This commit is contained in:
Dmitriy Novozhilov
2020-04-13 15:04:10 +03:00
parent fea7872359
commit 2e4183db7d
37 changed files with 179 additions and 100 deletions
@@ -13,24 +13,24 @@ fun isString(x: Any?): Boolean {
fun exhaustive(x: Any?) {
when (isString(x)) {
true -> x.<!UNRESOLVED_REFERENCE!>length<!>
true -> x.length
false -> x.<!UNRESOLVED_REFERENCE!>length<!>
}
when(!isString(x)) {
true -> x.<!UNRESOLVED_REFERENCE!>length<!>
false -> x.<!UNRESOLVED_REFERENCE!>length<!>
false -> x.length
}
}
fun smartcastInElse(x: Any?) {
when (isString(x)) {
false -> x.<!UNRESOLVED_REFERENCE!>length<!>
else -> x.<!UNRESOLVED_REFERENCE!>length<!>
else -> x.length
}
when (!isString(x)) {
true -> x.<!UNRESOLVED_REFERENCE!>length<!>
else -> x.<!UNRESOLVED_REFERENCE!>length<!>
else -> x.length
}
}