mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
12 lines
270 B
TypeScript
12 lines
270 B
TypeScript
// @strict: true
|
|
type A = {
|
|
other: number | null;
|
|
[index: string]: number | null
|
|
};
|
|
declare const value: A;
|
|
if (value.foo !== null) {
|
|
value.foo.toExponential()
|
|
value.other // should still be number | null
|
|
value.bar // should still be number | null
|
|
}
|