dotnet / dotnet/fsharp

Internal type parameter representation in error

Open
#8,680 0 comments 0 reactions 0 assignees View on GitHub
Area-Diagnostics Feature Improvement
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

```fsharp
let (Some x) = None
x <- 123

```

It fails to type check the right side expression and fails with this error:

Screenshot 2020-03-07 at 14 27 12

The only scenario I've seen it on is when it's inside a set expression and:
* the left side value is immutable
* the left side value appears to not yet inferred to have any constraints

This started showing up after #7682, but before that PR it would simply fail just before and wouldn't try to type check the right side expression at all.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.