TypeScript/tests/baselines/reference/genericArrayMethods1.errors.txt
2014-09-11 16:11:08 -07:00

6 lines
292 B
Plaintext

==== tests/cases/compiler/genericArrayMethods1.ts (1 errors) ====
var x:string[] = [0,1].slice(0); // this should be an error
~
!!! error TS2322: Type 'number[]' is not assignable to type 'string[]':
!!! error TS2322: Type 'number' is not assignable to type 'string'.