A wrong type is reported in a type mismatch error
Open
Bug
good first issue
help wanted
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 144
Description
Consider this code:
```fsharp
let a, b: int = ()
```
The error is produced on the `unit` expression, but it says that the type is `int`:
```
Error FS0001 : This expression was expected to have type
''a * 'b'
but here has type
'int'
```
This may be happening due to some expressions rewriting during the analysis.
Contributor guide
Assessment
This issue has not been assessed yet.