TypeScript/tests/baselines/reference/genericArrayAssignment1.errors.txt
2014-11-05 12:26:03 -08:00

12 lines
461 B
Plaintext

tests/cases/compiler/genericArrayAssignment1.ts(4,1): error TS2322: Type 'number[]' is not assignable to type 'string[]'.
Type 'number' is not assignable to type 'string'.
==== tests/cases/compiler/genericArrayAssignment1.ts (1 errors) ====
var s: string[];
var n: number[];
s = n;
~
!!! error TS2322: Type 'number[]' is not assignable to type 'string[]'.
!!! error TS2322: Type 'number' is not assignable to type 'string'.