mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
10 lines
149 B
TypeScript
10 lines
149 B
TypeScript
declare var x;
|
|
// Must emit as (x + 1) * 3
|
|
(x + 1 as number) * 3;
|
|
|
|
// Should still emit as x.y
|
|
(x as any).y;
|
|
|
|
// Emit as new (x())
|
|
new (x() as any);
|