FIR checker: report COMPONENT_FUNCTION_RETURN_TYPE_MISMATCH

This commit is contained in:
Jinseong Jeon
2021-04-06 16:45:45 -07:00
committed by Mikhail Glukhikh
parent e511eec90e
commit 87c50235ed
20 changed files with 194 additions and 74 deletions
@@ -22,7 +22,7 @@ fun bar(aList: List<A>) {
b checkType { _<String>() }
}
aList.foo { (a: String, b) ->
aList.foo { (<!COMPONENT_FUNCTION_RETURN_TYPE_MISMATCH!>a: String<!>, b) ->
a checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Int>() }
b checkType { _<String>() }
}
@@ -42,7 +42,7 @@ fun bar() {
d checkType { _<Short>() }
}
foo { (a: String, b) ->
foo { (<!COMPONENT_FUNCTION_RETURN_TYPE_MISMATCH!>a: String<!>, b) ->
a checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Int>() }
b checkType { _<String>() }
}