dotnet / dotnet/fsharp

Confusing sequence parsing error

Open
#10,862 2 comments 1 reaction 0 assignees View on GitHub
Area-Diagnostics Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

```fsharp
seq {
yield 123
123
}
```

```
scratch_29.fsx(2,11): error FS0003: This value is not a function and cannot be applied.
```

The code above doesn't make any sense but it shows how something that looks like a sequence is parsed as an application instead, and it seems confusing.

It seems similar to https://github.com/dotnet/fsharp/issues/9762.

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.