We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7aced4 commit bed28b2Copy full SHA for bed28b2
tests/FSharpLint.Core.Tests/Rules/Binding/FavourIgnoreOverLetWild.fs
@@ -67,3 +67,23 @@ module Program
67
let result = this.ApplyQuickFix source
68
69
Assert.AreEqual(expected, result)
70
+
71
+ [<Test>]
72
+ member this.LetWildCardInParanUnitValueSuggestedFix() =
73
+ let source = """
74
+module Program
75
76
+let ((((_)))) = List.iter (fun x -> ()) []"""
77
78
+ let expected = """
79
80
81
+(List.iter (fun x -> ()) []) |> ignore"""
82
83
+ this.Parse source
84
85
+ Assert.IsTrue(this.ErrorExistsAt(4, 4))
86
87
+ let result = this.ApplyQuickFix source
88
89
+ Assert.AreEqual(expected, result)
0 commit comments