Improved non-namespace overriding · linuxcodefire/TypeScript@ec2eac5 · GitHub
Skip to content

Commit ec2eac5

Browse files
committed
Improved non-namespace overriding
Per @ahejlsberg's suggestion, only overwrite a namespace `valueDeclaration` if the new declaration is not a namespace itself. This means that if there are multiple namespace declarations, and nothing else, `valueDeclaration` will be the first namespace declaration, not the last.
1 parent 9e8031c commit ec2eac5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/compiler/binder.ts

Lines changed: 2 additions & 1 deletion

src/compiler/checker.ts

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)