mirror of
https://github.com/swc-project/swc.git
synced 2024-12-03 00:54:25 +03:00
11 lines
163 B
TypeScript
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
|