Introduce FirFunctionReturnTypeMismatchChecker
This commit is contained in:
+1
-1
@@ -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?) {
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user