Skip to content

Commit 87508b3

Browse files
committed
fix accidentally broken completion example
1 parent 4362bdf commit 87508b3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

analysis/tests/src/TypeContextCompletion.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ let someVariantToString = (~someVariant) =>
88
| Four => "Four"
99
}
1010

11-
// let someVariantToString(~someVariant=
12-
// ^com
11+
// let x = someVariantToString(~someVariant=
12+
// ^com
1313

1414
module SomeComponent = {
1515
@react.component

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
Complete src/TypeContextCompletion.res 10:40
2-
posCursor:[10:40] posNoWhite:[10:39] Found expr:[10:26->18:1]
1+
Complete src/TypeContextCompletion.res 10:44
2+
posCursor:[10:44] posNoWhite:[10:43] Found expr:[10:11->18:1]
3+
Pexp_apply ...[10:11->10:30] (~someVariant10:32->10:43=...[13:0->17:3])
4+
Completable: CnamedArg(Value[someVariantToString], "", [someVariant])
5+
Found type for function (~someVariant: someVariant) => string
36
[]
47

58
Complete src/TypeContextCompletion.res 20:37

0 commit comments

Comments
 (0)