TypeScript/tests/baselines/reference/asOperatorNames.errors.txt
2015-11-05 15:45:12 -08:00

11 lines
426 B
Plaintext

tests/cases/conformance/expressions/asOperator/asOperatorNames.ts(2,9): error TS2352: Type 'number' cannot be converted to type 'string'.
==== tests/cases/conformance/expressions/asOperator/asOperatorNames.ts (1 errors) ====
var a = 20;
var b = a as string;
~~~~~~~~~~~
!!! error TS2352: Type 'number' cannot be converted to type 'string'.
var as = "hello";
var as1 = as as string;