Skip to content

Commit 6645df7

Browse files
committed
Extend example.
1 parent 8ec7e31 commit 6645df7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

analysis/tests/src/Parser.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ module T = {
6161
someOtherField: string,
6262
theParam: 'typeParameter,
6363
}
64+
65+
type someEnum = A | B | C
6466
}
6567

6668
let foo = x => x.T.someField

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ Lident: T (57,7) Namespace
5656
Type: someRecord (58,7)->(58,17)
5757
Type: int (59,15)->(59,18)
5858
Type: string (60,20)->(60,26)
59-
Lident: x (65,15) Variable
60-
Lident: x (65,10) Variable
61-
Lident: foo (65,4) Variable
59+
Type: someEnum (64,7)->(64,15)
60+
Lident: x (67,15) Variable
61+
Lident: x (67,10) Variable
62+
Lident: foo (67,4) Variable
6263

0 commit comments

Comments
 (0)