Merge pull request #6200 from Microsoft/reportPreEmitDiagnostics · johnangularjs/TypeScript@827fec6 · GitHub
Skip to content

Commit 827fec6

Browse files
committed
Merge pull request microsoft#6200 from Microsoft/reportPreEmitDiagnostics
report pre-emit diagnostics that blocked emit
2 parents 7785e84 + 39605fe commit 827fec6

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

src/compiler/program.ts

Lines changed: 5 additions & 2 deletions
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
tests/cases/compiler/DeclarationErrorsNoEmitOnError.ts(4,8): error TS4033: Property 'f' of exported interface has or is using private name 'T'.
2+
3+
4+
==== tests/cases/compiler/DeclarationErrorsNoEmitOnError.ts (1 errors) ====
5+
6+
type T = { x : number }
7+
export interface I {
8+
f: T;
9+
~
10+
!!! error TS4033: Property 'f' of exported interface has or is using private name 'T'.
11+
}
Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)