-
Notifications
You must be signed in to change notification settings - Fork 847
Open
Labels
Area-Compiler-OptimizationThe F# optimizer, release code gen etc.The F# optimizer, release code gen etc.Area-Diagnosticsmistakes and possible improvements to diagnosticsmistakes and possible improvements to diagnosticsBug
Milestone
Description
This code compiles fine:
[<TailCall>]
let rec fib a b = seq {
yield a
yield! fib b (a + b)
}
let fibonacci = fib 0 1But the following minor change produces the message: The member or function 'fib' has the 'TailCallAttribute' attribute, but is not being used in a tail recursive way.
[<TailCall>]
let rec fib a b = seq {
yield a
if true then
yield! fib b (a + b)
}
let fibonacci = fib 0 1Related information
Provide any related information (optional):
- Pop!_OS 22.04
- VS Code: 1.102.2
- TargetFramework: net9.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-Compiler-OptimizationThe F# optimizer, release code gen etc.The F# optimizer, release code gen etc.Area-Diagnosticsmistakes and possible improvements to diagnosticsmistakes and possible improvements to diagnosticsBug
Type
Projects
Status
New