Files
tsgo/testdata/baselines/reference/fourslash/syntaxandSemanticDiagnostics/unreachableCodeDiagnostics.baseline

11 lines
303 B
Plaintext

// === Syntax and Semantic Diagnostics ===
/unreachableCodeDiagnostics.ts(3,1): warning TS7027: Unreachable code detected.
==== /unreachableCodeDiagnostics.ts (1 errors) ====
throw new Error();
(() => {})();
~~~~~~~~~~~~~
!!! warning TS7027: Unreachable code detected.