[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,19 +13,19 @@ fun isString(x: Any?): Boolean {
fun exhaustive(x: Any?) {
when {
isString(x) -> x.<!UNRESOLVED_REFERENCE!>length<!>
isString(x) -> x.length
!isString(x) -> x.<!UNRESOLVED_REFERENCE!>length<!>
}
when {
!isString(x) -> x.<!UNRESOLVED_REFERENCE!>length<!>
isString(x) -> x.<!UNRESOLVED_REFERENCE!>length<!>
isString(x) -> x.length
}
}
fun smartcastInElse(x: Any?) {
when {
!isString(x) -> x.<!UNRESOLVED_REFERENCE!>length<!>
else -> x.<!UNRESOLVED_REFERENCE!>length<!>
else -> x.length
}
}