Skip to content

Commit 954e80a

Browse files
committed
More fourslash tests
1 parent d3eb84f commit 954e80a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: tests/cases/fourslash/completionPreferredSuggestions1.ts

+11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44
////v1 = "/*1*/";
55
////declare let v2: number & {} | 0 | 1 | 2;
66
////v2 = /*2*/;
7+
////declare let v3: string & Record<never, never> | "a" | "b" | "c";
8+
////v3 = "/*3*/";
9+
////type LiteralUnion1<T extends U, U> = T | U & {};
10+
////type LiteralUnion2<T extends U, U> = T | U & Record<never, never>;
11+
////declare let v4: LiteralUnion1<"a" | "b" | "c", string>;
12+
////v4 = "/*4*/";
13+
////declare let v5: LiteralUnion2<"a" | "b" | "c", string>;
14+
////v5 = "/*5*/";
715

816
verify.completions({ marker: "1", includes: ["a", "b", "c"] });
917
verify.completions({ marker: "2", includes: ["0", "1", "2"], isNewIdentifierLocation: true });
18+
verify.completions({ marker: "3", includes: ["a", "b", "c"] });
19+
verify.completions({ marker: "4", excludes: ["a", "b", "c"] });
20+
verify.completions({ marker: "5", includes: ["a", "b", "c"] });

0 commit comments

Comments
 (0)