mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
782245697e
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: RyanCavanaugh <[email protected]> Co-authored-by: Ryan Cavanaugh <[email protected]>
20 lines
560 B
Plaintext
20 lines
560 B
Plaintext
/checked.js(4,1): error TS2322: Type 'number' is not assignable to type 'string'.
|
|
/checked.ts(4,1): error TS2322: Type 'number' is not assignable to type 'string'.
|
|
|
|
|
|
==== /checked.ts (1 errors) ====
|
|
// @ts-check
|
|
/// <reference lib="dom" />
|
|
let a = '';
|
|
a = 1;
|
|
~
|
|
!!! error TS2322: Type 'number' is not assignable to type 'string'.
|
|
|
|
==== /checked.js (1 errors) ====
|
|
// @ts-check
|
|
/// <reference lib="dom" />
|
|
let b = '';
|
|
b = 1;
|
|
~
|
|
!!! error TS2322: Type 'number' is not assignable to type 'string'.
|
|
|