Skip to content

Commit eb1d185

Browse files
committed
Add test with a more complex constructor path.
1 parent 0e8cafc commit eb1d185

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

analysis/tests/src/Completion.res

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,3 +364,14 @@ let _ = x =>
364364
// ^com
365365
| _ => 4
366366
}
367+
368+
module AndThatOther = {
369+
type v = And | ThatOther
370+
}
371+
372+
let _ = x =>
373+
switch x {
374+
// | AndThatOther.T
375+
// ^com
376+
| _ => 4
377+
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,3 +1391,11 @@ posCursor:[362:8] posNoWhite:[362:7] Found pattern:[362:7->362:8]
13911391
XXX Ppat_construct T:[362:7->362:8]
13921392
[]
13931393

1394+
Complete tests/src/Completion.res 373:21
1395+
posCursor:[373:21] posNoWhite:[373:20] Found expr:[371:8->376:3]
1396+
posCursor:[373:21] posNoWhite:[373:20] Found expr:[372:2->376:3]
1397+
posCursor:[373:21] posNoWhite:[373:20] Found pattern:[373:7->375:5]
1398+
posCursor:[373:21] posNoWhite:[373:20] Found pattern:[373:7->373:21]
1399+
XXX Ppat_construct AndThatOther.T:[373:7->373:21]
1400+
[]
1401+

0 commit comments

Comments
 (0)