[FIR] Fix false positive RETURN_TYPE_MISMATCH in intellij ultimate

This commit is contained in:
Ivan Kochurkin
2022-04-07 16:07:11 +03:00
parent 04da0ba55d
commit 81b1ed9ad4
9 changed files with 14 additions and 11 deletions
@@ -103,7 +103,7 @@ fun main() {
select(
id { x, y -> <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int")!>x<!>.inv() + <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Number")!>y<!>.toByte() },
id<(Int, Number) -> Int> { x, y -> x.inv() },
<!RETURN_TYPE_MISMATCH!>{}<!> as (Number, Number) -> Int
{} as (Number, Number) -> Int
)
// Inferring lambda parameter types by a few expected types (a few upper constraints)