Skip to content

Commit 1775f42

Browse files
T-GroCopilot
andauthored
Add regression test for #6715: land is a valid identifier (#19478)
Verifies that land, lor, lxor, lsl, lsr, and asr can be used as valid identifiers after the ML compatibility removal in PR #19143. Fixes #6715 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8254128 commit 1775f42

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/FSharp.Compiler.ComponentTests/ErrorMessages/DiagnosticRegressionTests.fs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@ module ErrorMessages.DiagnosticRegressionTests
33
open Xunit
44
open FSharp.Test.Compiler
55

6+
// https://github.com/dotnet/fsharp/issues/6715
7+
[<Fact>]
8+
let ``Issue 6715 - land is a valid identifier after ML compat removal`` () =
9+
FSharp
10+
"""
11+
let land = 3
12+
let lor = 4
13+
let lxor = 5
14+
let lsl = 6
15+
let lsr = 7
16+
let asr = 8
17+
let sum = land + lor + lxor + lsl + lsr + asr
18+
"""
19+
|> asLibrary
20+
|> typecheck
21+
|> shouldSucceed
22+
623
// https://github.com/dotnet/fsharp/issues/15655
724
[<Fact>]
825
let ``Issue 15655 - error codes 999 and 3217 are distinct`` () =

0 commit comments

Comments
 (0)