-
Notifications
You must be signed in to change notification settings - Fork 12.8k
[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
Conversation
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.
Update authors
…-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.
Fix typedef parsing issue
* 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
* 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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
👍 |
1 similar comment
👍 |
Woah:exclamation: Can you please send out a fixed-up minimal PR this that cherry picks the relevant commits? Having merged in from |
@DanielRosenwasser yea this is a mistake (trying to do this before going to bed... 😅 ) accidentally merge master. I am going to revert it |
Fix #9829