Skip to content

Commit c8f9504

Browse files
committed
Example of let module in expression.
1 parent d20f174 commit c8f9504

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

analysis/tests/src/Completion.res

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,9 @@ let foo = {
113113
}
114114
let z = assert false
115115
let _ = z
116+
module Inner = {
117+
type z = int
118+
let v = 44
119+
}
116120
add(x, y)
117121
}

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ DocumentSymbol tests/src/Completion.res
593593
{
594594
"name": "foo",
595595
"kind": 13,
596-
"location": {"uri": "Completion.res", "range": {"start": {"line": 103, "character": 0}, "end": {"line": 116, "character": 1}}}
596+
"location": {"uri": "Completion.res", "range": {"start": {"line": 103, "character": 0}, "end": {"line": 120, "character": 1}}}
597597
},
598598
{
599599
"name": "x",
@@ -614,6 +614,16 @@ DocumentSymbol tests/src/Completion.res
614614
"name": "z",
615615
"kind": 13,
616616
"location": {"uri": "Completion.res", "range": {"start": {"line": 113, "character": 2}, "end": {"line": 113, "character": 22}}}
617+
},
618+
{
619+
"name": "z",
620+
"kind": 26,
621+
"location": {"uri": "Completion.res", "range": {"start": {"line": 116, "character": 4}, "end": {"line": 116, "character": 16}}}
622+
},
623+
{
624+
"name": "v",
625+
"kind": 16,
626+
"location": {"uri": "Completion.res", "range": {"start": {"line": 117, "character": 4}, "end": {"line": 117, "character": 14}}}
617627
}
618628
]
619629

0 commit comments

Comments
 (0)