mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
18 lines
260 B
TypeScript
18 lines
260 B
TypeScript
// @strictNullChecks: true
|
|
|
|
var a1 = null;
|
|
var a2 = undefined;
|
|
var a3 = void 0;
|
|
|
|
var b1 = [];
|
|
var b2 = [,];
|
|
var b3 = [undefined];
|
|
var b4 = [[], []];
|
|
var b5 = [[], [,]];
|
|
|
|
declare function f<T>(x: T): T;
|
|
|
|
var c1 = f(null);
|
|
var c2 = f(undefined);
|
|
var c3 = f([]);
|