TypeScript/tests/baselines/reference/prettyFileWithErrorsAndTabs.errors.txt

31 lines
1.2 KiB
Plaintext
Raw Normal View History

tests/cases/compiler/prettyFileWithErrorsAndTabs.ts:3:9 - error TS2322: Type 'number' is not assignable to type 'string'.
3 const x: string = 12;
   ~
tests/cases/compiler/prettyFileWithErrorsAndTabs.ts:4:9 - error TS2322: Type 'number' is not assignable to type 'string'.
4 const y: string = 12;
   ~
tests/cases/compiler/prettyFileWithErrorsAndTabs.ts:5:9 - error TS2322: Type 'number' is not assignable to type 'string'.
5 const z: string = 12;
   ~
==== tests/cases/compiler/prettyFileWithErrorsAndTabs.ts (3 errors) ====
function f() {
{
const x: string = 12;
~
!!! error TS2322: Type 'number' is not assignable to type 'string'.
const y: string = 12;
~
!!! error TS2322: Type 'number' is not assignable to type 'string'.
const z: string = 12;
~
!!! error TS2322: Type 'number' is not assignable to type 'string'.
}
}
Found 3 errors.