TypeScript/tests/cases/conformance/expressions/asOperator/asOperatorASI.ts

11 lines
173 B
TypeScript
Raw Normal View History

2015-06-18 23:03:14 +02:00
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