report pre-emit diagnostics that blocked emit by vladima · Pull Request #6200 · microsoft/TypeScript · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/compiler/program.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tests/cases/compiler/DeclarationErrorsNoEmitOnError.ts(4,8): error TS4033: Property 'f' of exported interface has or is using private name 'T'.


==== tests/cases/compiler/DeclarationErrorsNoEmitOnError.ts (1 errors) ====

type T = { x : number }
export interface I {
f: T;
~
!!! error TS4033: Property 'f' of exported interface has or is using private name 'T'.
}
8 changes: 8 additions & 0 deletions tests/cases/compiler/DeclarationErrorsNoEmitOnError.ts