Skip to content

Commit

Permalink
use named access on ident pattern match
Browse files Browse the repository at this point in the history
  • Loading branch information
rosskuehl committed Dec 29, 2022
1 parent 307bd35 commit a615f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/service/TreeVisitorTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ let ``Visit recursive let binding`` () =
let parseTree = parseSourceCode("C:\\test.fs", source)

match SyntaxTraversal.Traverse(pos0, parseTree, visitor) with
| Some [ SynBinding (_, _, _, _, _, _, SynValData(_, SynValInfo([[ SynArgInfo(_, _, Some id) ]], _), _), _, _, _, _, _, _) ] when id.idText = "n" -> ()
| Some [ SynBinding(valData = SynValData(valInfo = SynValInfo(curriedArgInfos = [ [ SynArgInfo(ident = Some id) ] ]))) ] when id.idText = "n" -> ()
| _ -> failwith "Did not visit recursive let binding"

0 comments on commit a615f58

Please sign in to comment.