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
letcall(f:string ->int)x = f x
letx= call _.Length ""
Expected behavior
Compiles.
Actual behavior
0>Program.fs(10,1): Error FS0010 : Incomplete structured construct at or before this point in expression
0>Program.fs(10,14): Error FS3571 : _. shorthand syntax for lambda functions can only be used with atomic expressions. That means expressions with no whitespace unless enclosed in parentheses.
Known workarounds
Enclose shorthand lambda in parentheses:
letx= call (_.Length)""
The text was updated successfully, but these errors were encountered:
Expected behavior
Compiles.
Actual behavior
Known workarounds
Enclose shorthand lambda in parentheses:
The text was updated successfully, but these errors were encountered: