Skip to content

Commit

Permalink
Tests(UnneededRecKeyword): add a failure test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mersho authored and knocte committed Jan 6, 2024
1 parent 3b20b01 commit 97c2b9b
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,25 @@ let rec Foo () =
Assert.IsTrue this.NoErrorsExist

[<Test>]
member this.UnneededRecKeywordShouldProduceError() =
member this.UnneededRecKeywordShouldProduceError_1() =
this.Parse """
let rec Foo someParam =
()"""

Assert.IsTrue this.ErrorsExist

[<Test>]
member this.UnneededRecKeywordShouldProduceError_2() =
this.Parse """
let rec Foo someParam =
()
[<EntryPoint>]
let main args =
let Foo () =
()
Foo()
0"""

Assert.IsTrue this.ErrorsExist

0 comments on commit 97c2b9b

Please sign in to comment.