You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We analyze the latter correctly as sequential expression and produce the warning, and we end up analysing the former as application and decide that it's tail recursive, which we shouldn't.
When using the TailCall attribute, warning FS3569 is not shown when the recursive call is inside a list comprehension
Repro steps
dotnet build
Example project with a case where the bug occurs , and a slightly different version where the bug does not occur
Expected behavior
The compiler displays warning FS3569
Actual behavior
The compiler does not show the warning
Known workarounds
Do not use list comprehensions when trying to use the tail call compiler attribute
Related information
The text was updated successfully, but these errors were encountered: