mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +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);
|