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
Copy file name to clipboardExpand all lines: src/fsharp/FSComp.txt
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1475,6 +1475,9 @@ notAFunctionButMaybeDeclaration,"This value is not a function and cannot be appl
1475
1475
3301,chkInvalidFunctionReturnType,"The function or method has an invalid return type '%s'. This is not permitted by the rules of Common IL."
1476
1476
3302,packageManagementRequiresVFive,"The package management feature requires language version 5.0 use /langversion:preview"
1477
1477
3303,fromEndSlicingRequiresVFive,"From the end slicing with requires language version 5.0, use /langversion:preview."
1478
+
3343,tcRequireMergeSourcesOrBindN,"The 'let! ... and! ...' construct may only be used if the computation expression builder defines either a '%s' method or appropriate 'MergeSource' and 'Bind' methods"
1479
+
3344,tcAndBangNotSupported,"This feature is not supported in this version of F#. You may need to add /langversion:preview to use this feature."
1480
+
3345,tcInvalidUseBangBindingNoAndBangs,"use! may not be combined with and!"
1478
1481
useSdkRefs,"Use reference assemblies for .NET framework references when available (Enabled by default)."
1479
1482
fSharpBannerVersion,"%s for F# %s"
1480
1483
optsLangVersion,"Display the allowed values for language version, specify language version such as 'latest' or 'preview'"
| MatchBang ofmatchSeqPoint:SequencePointInfoForBinding*expr:SynExpr*clauses:SynMatchClauselist*range:range(* bool indicates if this is an exception match in a computation expression which throws unmatched exceptions *)
@@ -2475,6 +2476,6 @@ let rec synExprContainsError inpExpr =
Copy file name to clipboardExpand all lines: src/fsharp/pars.fsy
+34-10Lines changed: 34 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,7 @@ let rangeOfLongIdent(lid:LongIdent) =
189
189
%token <char> CHAR
190
190
%token <System.Decimal> DECIMAL
191
191
%token <(string * string)> BIGNUM
192
-
%token <bool> LET YIELD YIELD_BANG
192
+
%token <bool> LET YIELD YIELD_BANG AND_BANG
193
193
%token <bool> LESS GREATER /* here the bool indicates if the tokens are part of a type application or type parameter declaration, e.g. C<int>, detected by the lex filter */
194
194
%token <string> PERCENT_OP BINDER
195
195
%token <string * bool> LQUOTE RQUOTE RQUOTE_DOT
@@ -218,6 +218,7 @@ let rangeOfLongIdent(lid:LongIdent) =
218
218
/* for offside rule */
219
219
%token <bool> OLET /* LexFilter #light converts 'LET' tokens to 'OLET' when starting (CtxtLetDecl(blockLet=true)) */
220
220
%token <string> OBINDER /* LexFilter #light converts 'BINDER' tokens to 'OBINDER' when starting (CtxtLetDecl(blockLet=true)) */
221
+
%token <bool> OAND_BANG /* LexFilter #light converts 'AND_BANG' tokens to 'OAND_BANG' when starting (CtxtLetDecl(blockLet=true)) */
0 commit comments