fix(39373): const {} = require import causes Debug Failure#39567
fix(39373): const {} = require import causes Debug Failure#39567DanielRosenwasser merged 1 commit intomicrosoft:masterfrom
Conversation
0ea45f3 to
4eeb747
Compare
…ss declarations without name
|
Generally we use |
|
@DanielRosenwasser Thanks for the feedback 👍. Actually, and it returns export default class extends Foo {}Based on the type definition, a TypeScript/src/compiler/types.ts Lines 2780 to 2781 in 1702238 For that reason, TS crashes because it uses diagnostic messages with two arguments, however, receive only one. TypeScript/src/compiler/transformers/declarations.ts Lines 141 to 144 in 1702238 Do you propose to replace the missed TypeScript/src/compiler/transformers/declarations.ts Lines 134 to 136 in 1702238 |
|
Actually I think it's fine, especially since functions have the same diagnostic. |
|
I actually realized that the test might need to be changed to use at least one |
Fixes #39373