TypeScript/tests/cases/conformance/expressions/asOperator/asOperatorASI.ts
2015-06-18 14:03:14 -07:00

11 lines
173 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