Skip to content

Commit c4c9bf7

Browse files
author
Andy Hanson
committed
Add | undefined to test
1 parent b9c3a99 commit c4c9bf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cases/fourslash/completionListOfUnion.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// @strictNullChecks: true
44

5-
// Non-objects should be skipped, so `| number | null` should have no effect on completions.
6-
////const x: { a: number, b: number } | { a: string, c: string } | { b: boolean } | number | null = { /*x*/ };
5+
// Primitives should be skipped, so `| number | null | undefined` should have no effect on completions.
6+
////const x: { a: number, b: number } | { a: string, c: string } | { b: boolean } | number | null | undefined = { /*x*/ };
77

88
////interface I { a: number; }
99
////function f(...args: Array<I | I[]>) {}

0 commit comments

Comments
 (0)