Skip to content

Commit 5c2b555

Browse files
author
Maria Solano
committed
Add test from original issue
1 parent cf47676 commit 5c2b555

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
//// type Foo = { a: 0, b: 'x' } | { a: 0, b: 'y' } | { a: 1, b: 'z' };
4+
//// const foo: Foo = { a: 0, b: '/*1*/' }
5+
////
6+
//// type Bar = { a: 0, b: 'fx' } | { a: 0, b: 'fy' } | { a: 1, b: 'fz' };
7+
//// const bar: Bar = { a: 0, b: 'f/*2*/' }
8+
verify.completions({ marker: "1", triggerCharacter: "'", includes: [ "x", "y" ], excludes: [ "z" ] });
9+
verify.completions({ marker: "2", triggerCharacter: "'", includes: [ "fx", "fy" ], excludes: [ "fz" ] });

0 commit comments

Comments
 (0)