mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
18 lines
265 B
TypeScript
18 lines
265 B
TypeScript
// @strictNullChecks: true
|
|
|
|
function f() {
|
|
let x: { a?: number | string, b: number | string } = { b: 1 };
|
|
x.a;
|
|
x.b;
|
|
x.a = 1;
|
|
x.b = 1;
|
|
x.a;
|
|
x.b;
|
|
delete x.a;
|
|
delete x.b;
|
|
x.a;
|
|
x.b;
|
|
x;
|
|
delete x; // No effect
|
|
x;
|
|
} |