Skip to content

Commit 3aeff5d

Browse files
committed
Tests(ParameterNames): add test for module members
That makes sure that member names don't cause errors as they the rule is only for function parameters.
1 parent 78304fc commit 3aeff5d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/FSharpLint.Core.Tests/Rules/Conventions/Naming/ParameterNames.fs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,14 @@ let foo ((x, y) as bar_coord) = bar_coord
114114
"""
115115

116116
Assert.IsTrue this.ErrorsExist
117+
118+
[<Test>]
119+
member this.``Module members should not cause errors as they are not parameters``() =
120+
this.Parse """
121+
module BitLaunch =
122+
module Regions =
123+
let Bucharest = "Bucharest"
124+
let Amsterdam someArg = "Amsterdam"
125+
"""
126+
127+
Assert.IsFalse this.ErrorsExist

0 commit comments

Comments
 (0)