Skip to content

[Release-2.0]Fix 9829 : do not report error using import, export, module augmentation in d.t.s #9870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 116 commits into from

Conversation

yuit
Copy link
Contributor

@yuit yuit commented Jul 21, 2016

Fix #9829

RyanCavanaugh and others added 30 commits June 23, 2016 10:51
Previously, it would enter them as buckets with no tests, which would
make our test runners run *every* test.

This was very obvious on machines with lots of cores.
…-buckets

runtests-parallel skips empty buckets
Remove the unused text buffer(content) from ScriptInfo
Swap q from a reference to an import
Fix #9550: exclude 'this' type parameters from unusedParameters checks.
Previously, all assignment-declarations needed to be of the same kind:
either all `this.p = ...` assignments or `C.prototype.p = ...`
assignments.
mhegazy and others added 13 commits July 18, 2016 14:56
* Add tests and baselines

* Fix incorrect emit decorated class alias when targeting es6 or higher
* Port performance tools from transforms branch

* Use friendlier names, add compiler option to print all recorded measures

* Always print total time

* + -> .getTime
…ration error in ambient context (#9789) (#9830)

* Do not report block-scoped-used-before-declaration in ambient context

* Add tests and baselines
* Integrate feedback from @mihailik

* Rons feedback, explicitly include in new tsconfigs
Make TemplateStringsArray immutable.
Fix #9843. IScriptSnapshot can return undefined
…arameters

Fix emit with this and rest parameters
@@ -2275,7 +2275,7 @@ namespace ts {
programDiagnostics.add(createFileDiagnostic(firstNonExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided));
}
}
else if (firstExternalModuleSourceFile && languageVersion < ScriptTarget.ES6 && options.module === ModuleKind.None) {
else if (firstExternalModuleSourceFile && !isDeclarationFile(firstExternalModuleSourceFile) && languageVersion < ScriptTarget.ES6 && options.module === ModuleKind.None) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not enough because for program with a.d.ts and b.ts the error wont be reported in b.ts
You technically want firstNonAmbientExternalModuleSourceFile here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sheetalkamat will address it and add tests

@mhegazy
Copy link
Contributor

mhegazy commented Jul 21, 2016

👍

1 similar comment
@sheetalkamat
Copy link
Member

👍

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Jul 22, 2016

Woah:exclamation:

Can you please send out a fixed-up minimal PR this that cherry picks the relevant commits? Having merged in from master will cause some issues that we don't want to need to think about. While it's doable, this will keep things cleaner.

@yuit
Copy link
Contributor Author

yuit commented Jul 22, 2016

@DanielRosenwasser yea this is a mistake (trying to do this before going to bed... 😅 ) accidentally merge master. I am going to revert it

@yuit yuit closed this Jul 22, 2016
@yuit yuit deleted the fix9829 branch July 22, 2016 15:02
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.