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
@@ -13,5 +13,5 @@ fun list(start: SomeObject): SomeObject {
e = e<!UNSAFE_CALL!>.<!>next()
}
// Smart cast is not possible here due to next()
return e
return <!RETURN_TYPE_MISMATCH!>e<!>
}
@@ -14,5 +14,5 @@ fun list(start: SomeObject): SomeObject {
e.doSomething()
e = e.next()
}
return e
return <!RETURN_TYPE_MISMATCH!>e<!>
}
@@ -14,5 +14,5 @@ fun list(start: SomeObject): SomeObject {
e.doSomething()
e = e.next()
}
return e
return <!RETURN_TYPE_MISMATCH!>e<!>
}