Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions
Nikolay Lunyak 9850987415 [FIR] Fix mutant extension function types
Consider the following example from
`extensionLambdasAndArrow.kt`:

```
val x4: String.() -> String = if (true) {
    { str: String -> "this" }
} else {
    { str: String -> "this" }
}
```

Because of
`coerceFirstParameterToExtensionReceiver`
the given lambdas must be of the type
`String.() -> String`, but because of a bug
they are `String.(String) -> String`. At the
same time, during inference their expected
types are, indeed, calculated correctly as
`String.() -> String`.

^KT-59394 Declined
(no more compiler crashes, #potential-feature)
2023-08-04 11:20:39 +00:00
..
2022-02-25 11:46:27 +00:00
2021-11-12 15:20:45 +03:00
2021-11-12 15:20:43 +03:00
2021-11-12 15:20:43 +03:00
2022-02-25 11:46:27 +00:00