Files
tsgo/testdata/baselines/reference/compiler/tsCheckPreservedAfterReference.errors.txt
782245697e Preserve ts-check across reference directives (#4061)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: RyanCavanaugh <[email protected]>
Co-authored-by: Ryan Cavanaugh <[email protected]>
2026-06-02 21:00:54 +00:00

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'.