Wrong actual type is captured in diagnostic
Open
Bug
Needs-Triage
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 131
Description
In the code below the expected type is `int` and the actual is `string`:
```fsharp
module Module
type T() =
static member P1 = T.P2 + 1
static member P2 = ""
```
However, the diagnostic data captures the opposite:
This seems to be a regression in #18851. cc @DedSec256
Contributor guide
Assessment
This issue has not been assessed yet.