12 lines
461 B
Plaintext
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'. |