[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:
committed by
Space Team
parent
fbdf7e33bd
commit
4c0ec0fae4
@@ -1,4 +1,3 @@
|
||||
// FIR_IDENTICAL
|
||||
fun f(a: (Int) -> Unit) {
|
||||
a as Int.() -> Unit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user