-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning only when function application is inside SynExpr.IfThenElse #10929
Comments
Other workaround :) if System.Text.RegularExpressions.Regex.IsMatch(
"myInput",
"""^[a-zA-Z][a-zA-Z0-9']+$"""
) then
() I know that @dsyme has preferred these to be tracked as RFCs for some reason but it just kinda feels like a bug to me at this point. |
Yeah, then the next lad complains that the max line length is not respected 🙃. Anyway, Don if this needs an RFC, please let me know. |
This relaxation should be tracked by a language suggestion, which we can consdier approved-in-principle. |
Fixed in preview #11772 |
Consider the following code example:
![image](https://user-images.githubusercontent.com/2621499/105501987-33a9a280-5cc5-11eb-9535-bdcbbfd7bb74.png)
I get an indentation warning when the function call is inside the if condition.
But not when it is used in a let binding body.
Expected behavior
I would expect both cases not to show any warnings.
Actual behavior
Warning for the expression inside the if/then/else
Known workarounds
Wrap the if condition inside parenthesises.
Related information
Provide any related information (optional):
Related Fantomas bug: fsprojects/fantomas#1349
The text was updated successfully, but these errors were encountered: