dotnet / dotnet/fsharp

Incorrect warning for active pattern signature with generic parameters

Open
#14,736 0 comments 1 reaction 0 assignees View on GitHub
Area-Diagnostics Bug Impact-Low
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

The following signature leads to unnecessary warning (I think).

**Repro steps**

```fsharp
val (|Fst|)<'a ,'b> : a: 'a * 'b -> 'a
```

**Expected behavior**

The code should parse without warnings. (Again, I think)

**Actual behavior**

Warning: `[FS1189] Remove spaces between the type name and type parameter,
e.g. "type C<'T>", not type "C <'T>". Type parameters must be placed directly adjacent to the type name.`

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.