Skip to content

Commit 7a0b8fb

Browse files
committed
fix accidental double pipe in exhaustive switch statements
1 parent 3110b2e commit 7a0b8fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

analysis/src/CompletionBackEnd.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ let rec processCompletable ~debug ~full ~scope ~env ~pos ~forHover completable =
16721672
~cases:
16731673
(v.constructors
16741674
|> List.map (fun (constructor : polyVariantConstructor) ->
1675-
"| #" ^ constructor.name
1675+
"#" ^ constructor.name
16761676
^
16771677
match constructor.args with
16781678
| [] -> ""

analysis/tests/src/expected/ExhaustiveSwitch.res.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Path withSomePol
4242
"detail": "insert exhaustive switch for value",
4343
"documentation": null,
4444
"filterText": "withSomePoly",
45-
"insertText": "withSomePoly {\n | | #one => ${1:failwith(\"todo\")}\n | | #three(_) => ${2:failwith(\"todo\")}\n | | #two => ${3:failwith(\"todo\")}\n }",
45+
"insertText": "withSomePoly {\n | #one => ${1:failwith(\"todo\")}\n | #three(_) => ${2:failwith(\"todo\")}\n | #two => ${3:failwith(\"todo\")}\n }",
4646
"insertTextFormat": 2
4747
}]
4848

0 commit comments

Comments
 (0)