mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
459 B
Plaintext
13 lines
459 B
Plaintext
/src/bar.ts(1,7): error TS2322: Type 'number' is not assignable to type 'string'.
|
|
/src/foo.ts(1,7): error TS2322: Type 'string' is not assignable to type 'number'.
|
|
|
|
|
|
==== /src/foo.ts (1 errors) ====
|
|
const x: number = "";
|
|
~
|
|
!!! error TS2322: Type 'string' is not assignable to type 'number'.
|
|
|
|
==== /src/bar.ts (1 errors) ====
|
|
const y: string = 1;
|
|
~
|
|
!!! error TS2322: Type 'number' is not assignable to type 'string'. |