Files
tsgo/testdata/baselines/reference/tsc/commandLine/option-diagnostics-are-suppressed-when-there-are-syntactic-errors.js
306f69d91e Suppress compiler-option diagnostics when syntactic errors exist (#4153)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-06-02 18:53:15 +00:00

1.2 KiB

currentDirectory::/home/src/workspaces/project
useCaseSensitiveFileNames::true
Input::
//// [/home/src/workspaces/project/a.ts] *new*
const x: = 1;
 
tsgo --strictPropertyInitialization --strictNullChecks false a.ts
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
a.ts:1:10 - error TS1110: Type expected.
 
1 const x: = 1;
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/tslibs/TS/Lib/lib.es2025.full.d.ts] *Lib*
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number { toExponential: any; }
interface Object {}
interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
interface ReadonlyArray<T> {}
interface SymbolConstructor {
(desc?: string | number): symbol;
for(name: string): symbol;
readonly toStringTag: symbol;
}
declare var Symbol: SymbolConstructor;
interface Symbol {
readonly [Symbol.toStringTag]: string;
}
declare const console: { log(msg: any): void; };
//// [/home/src/workspaces/project/a.js] *new*
"use strict";
const x = 1;