swc/crates/swc_ecma_parser/tests/tsc/asOperatorASI.ts

11 lines
163 B
TypeScript

class Foo { }
declare function as(...args: any[]);
// Example 1
var x = 10
as `Hello world`; // should not error
// Example 2
var y = 20
as(Foo); // should emit