mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
435 B
Plaintext
12 lines
435 B
Plaintext
genericArrayAssignment1.ts(4,1): error TS2322: Type 'number[]' is not assignable to type 'string[]'.
|
|
Type 'number' is not assignable to type 'string'.
|
|
|
|
|
|
==== genericArrayAssignment1.ts (1 errors) ====
|
|
declare var s: string[];
|
|
declare 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'. |