Skip to content

Commit 752223a

Browse files
committed
Core.Tests: new test for WildcardNamedWithAsPattern
Added new test for WildcardNamedWithAsPattern rule that checks that wildcard pattern without as should not raise warning.
1 parent 75d7e17 commit 752223a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/FSharpLint.Core.Tests/Rules/Binding/WildcardNamedWithAsPattern.fs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,15 @@ match [] with
2727

2828
Assert.IsFalse(this.ErrorsExist)
2929

30+
[<Test>]
31+
member this.WildcardWithoutAsPattern() =
32+
this.Parse """
33+
module Program
34+
35+
match [] with
36+
| _ -> ()"""
37+
38+
Assert.IsFalse(this.ErrorsExist)
39+
3040

3141

0 commit comments

Comments
 (0)