Skip to content

Commit 1b0b750

Browse files
committedMay 12, 2022
Add example of missing complete for constructor in switch.
See #414
1 parent ce21051 commit 1b0b750

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
 

‎analysis/tests/src/Completion.res

+9
Original file line numberDiff line numberDiff line change
@@ -355,3 +355,12 @@ let _ = <div name="" />
355355

356356
// (let _ = ff(~opt1=3))
357357
// ^com
358+
359+
type v = This | That
360+
361+
let _ = x =>
362+
switch x {
363+
// | T
364+
// ^com
365+
| _ => 4
366+
}

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

+5
Original file line numberDiff line numberDiff line change
@@ -1381,3 +1381,8 @@ posCursor:[355:23] posNoWhite:[355:22] Found expr:[0:-1->355:23]
13811381
posCursor:[355:23] posNoWhite:[355:22] Found expr:[355:12->355:23]
13821382
[]
13831383

1384+
Complete tests/src/Completion.res 362:8
1385+
posCursor:[362:8] posNoWhite:[362:7] Found expr:[360:8->365:3]
1386+
posCursor:[362:8] posNoWhite:[362:7] Found expr:[361:2->365:3]
1387+
[]
1388+

0 commit comments

Comments
 (0)