12 lines
No EOL
461 B
Text
12 lines
No EOL
461 B
Text
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'. |