Introduce FirFunctionReturnTypeMismatchChecker

This commit is contained in:
vldf
2021-04-03 22:58:19 +03:00
committed by Mikhail Glukhikh
parent 24f1f1221e
commit 57d2eb5da2
80 changed files with 501 additions and 238 deletions
@@ -5,7 +5,7 @@ fun checkNotNull(x: Any?) {
returns(true) implies (x != null)
returns(false) implies (x == null)
}
return x != null
return <!RETURN_TYPE_MISMATCH!>x != null<!>
}
fun trickyRequireNotNull(x: Any?) {
@@ -5,7 +5,7 @@ fun checkIsString(x: Any) {
returns(true) implies (x is String)
returns(false) implies (x !is String)
}
return x is String
return <!RETURN_TYPE_MISMATCH!>x is String<!>
}
fun test(x: Any) {