Introduce FirFunctionReturnTypeMismatchChecker
This commit is contained in:
@@ -11,7 +11,7 @@ interface KtLightMethod : PsiElement
|
||||
// With covariant array here we do not visit lambda (it.usage is KtLightMethod) below
|
||||
// Problem disappears if 'out' is removed
|
||||
fun <T> Array<out T>.filterNot(f: (T) -> Boolean): List<T> {
|
||||
return this
|
||||
return <!RETURN_TYPE_MISMATCH!>this<!>
|
||||
}
|
||||
|
||||
fun <T> Array<T>.toList(): List<T>? = null
|
||||
|
||||
Reference in New Issue
Block a user