Add | undefined
to test
This commit is contained in:
parent
b9c3a992e1
commit
c4c9bf70c4
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
// @strictNullChecks: true
|
// @strictNullChecks: true
|
||||||
|
|
||||||
// Non-objects should be skipped, so `| number | null` should have no effect on completions.
|
// Primitives should be skipped, so `| number | null | undefined` should have no effect on completions.
|
||||||
////const x: { a: number, b: number } | { a: string, c: string } | { b: boolean } | number | null = { /*x*/ };
|
////const x: { a: number, b: number } | { a: string, c: string } | { b: boolean } | number | null | undefined = { /*x*/ };
|
||||||
|
|
||||||
////interface I { a: number; }
|
////interface I { a: number; }
|
||||||
////function f(...args: Array<I | I[]>) {}
|
////function f(...args: Array<I | I[]>) {}
|
||||||
|
|
Loading…
Reference in a new issue