Skip to content

Commit 9a87342

Browse files
Happypig375baronfel
authored andcommitted
Add lowercase L and octal for ints to set of valid numeric literals in FS1156 message (#8584)
* Add lowercase L to set of valid numeric literals in FS1156 message * Add octal
1 parent 111a065 commit 9a87342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fsharp/FSComp.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ lexUnexpectedChar,"Unexpected character '%s'"
10211021
1153,lexInvalidFloat,"Invalid floating point number"
10221022
1154,lexOusideDecimal,"This number is outside the allowable range for decimal literals"
10231023
1155,lexOusideThirtyTwoBitFloat,"This number is outside the allowable range for 32-bit floats"
1024-
1156,lexInvalidNumericLiteral,"This is not a valid numeric literal. Valid numeric literals include 1, 0x1, 0b0001 (int), 1u (uint32), 1L (int64), 1UL (uint64), 1s (int16), 1y (sbyte), 1uy (byte), 1.0 (float), 1.0f (float32), 1.0m (decimal), 1I (BigInteger)."
1024+
1156,lexInvalidNumericLiteral,"This is not a valid numeric literal. Valid numeric literals include 1, 0x1, 0o1, 0b1, 1l (int), 1u (uint32), 1L (int64), 1UL (uint64), 1s (int16), 1y (sbyte), 1uy (byte), 1.0 (float), 1.0f (float32), 1.0m (decimal), 1I (BigInteger)."
10251025
1157,lexInvalidByteLiteral,"This is not a valid byte literal"
10261026
1158,lexInvalidCharLiteral,"This is not a valid character literal"
10271027
1159,lexThisUnicodeOnlyInStringLiterals,"This Unicode encoding is only valid in string literals"

0 commit comments

Comments
 (0)