Skip to content

Commit 8ec7e31

Browse files
committed
Extend example file.
1 parent 4faa239 commit 8ec7e31

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

analysis/tests/src/Parser.res

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,14 @@ open XX.YY
5353

5454
type tt = t
5555

56-
// ^par
56+
// ^par
57+
58+
module T = {
59+
type someRecord<'typeParameter> = {
60+
someField: int,
61+
someOtherField: string,
62+
theParam: 'typeParameter,
63+
}
64+
}
65+
66+
let foo = x => x.T.someField

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Parse tests/src/Parser.res
2-
structure items:15 diagnostics:0
2+
structure items:17 diagnostics:0
33
Lident: M (0,7) Namespace
44
Lident: C (1,9) Namespace
55
Lident: Component (1,13) Namespace
@@ -52,4 +52,11 @@ Ldot: XX (51,5) Namespace
5252
Lident: YY (51,8) Namespace
5353
Type: tt (53,5)->(53,7)
5454
Type: t (53,10)->(53,11)
55+
Lident: T (57,7) Namespace
56+
Type: someRecord (58,7)->(58,17)
57+
Type: int (59,15)->(59,18)
58+
Type: string (60,20)->(60,26)
59+
Lident: x (65,15) Variable
60+
Lident: x (65,10) Variable
61+
Lident: foo (65,4) Variable
5562

0 commit comments

Comments
 (0)