[FIR] Remove redundant checks from isUpcast() and isExactTypeCast()

`T.() -> R` and `(T) -> R` should only be
different for resolution, but casts are only
about typechecking. Values of either of
these types can always be put into variables
of the other type.
This commit is contained in:
Nikolay Lunyak
2024-03-07 14:04:24 +02:00
committed by Space Team
parent fbdf7e33bd
commit 4c0ec0fae4
3 changed files with 14 additions and 18 deletions
@@ -1,4 +1,3 @@
// FIR_IDENTICAL
fun f(a: (Int) -> Unit) {
a as Int.() -> Unit