dotnet / dotnet/fsharp

Type checker: extension member is reported as resolved when object type is clearly not applicable

Open
#11,658 5 comments 0 reactions 0 assignees View on GitHub
Area-Compiler-Checking-Overloads Feature Improvement Impact-Low
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

```fsharp
open System.Runtime.CompilerServices

[]
type Ext =
[]
static member M(tuple: int * int) = 1

"".M()
```

Expected: `M` is not resolved.

Actual: `M` is resolved but produces type error:

Screenshot 2021-06-09 at 18 19 52

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.