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
let rec Foo someParam =
if someParam then
Foo()
else
()
Should not error:
[<TailCall>]
let rec Foo someParam =
if someParam then
Foo()
else
()
Should error (but with different error message):
let rec Foo someParam =
()
In the latter testcase, error message should be same as this rule's err msg: #650 (please don't violate DRY). Otherwise, the error message should advise both about adding the TailCall attribute and<WarningsAsErrors>FS3569</WarningsAsErrors> (NOTE: it should also mention that this feature requires .NETv8.0 or newer).
The text was updated successfully, but these errors were encountered:
Description
Context: https://stackoverflow.com/questions/806712/how-do-i-know-if-a-function-is-tail-recursive-in-f/77532717#77532717
Testcases
Should error:
Should not error:
Should error (but with different error message):
In the latter testcase, error message should be same as this rule's err msg: #650 (please don't violate DRY). Otherwise, the error message should advise both about adding the TailCall attribute and
<WarningsAsErrors>FS3569</WarningsAsErrors>
(NOTE: it should also mention that this feature requires .NETv8.0 or newer).The text was updated successfully, but these errors were encountered: