dotnet / dotnet/fsharp

FS3559 triggers on query expressions

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

Description

It seems that all `query` expressions trigger the new FS3559 if enabled:

```f#
query { for x in [1] do select x }
```

> A type has been implicitly inferred as 'obj', which may be unintended. Consider adding explicit type annotations. You can disable this warning by using '#nowarn "3559"' or '--nowarn:3559'.

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.