Files
tsgo/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).errors.txt.diff

30 lines
982 B
Diff

--- old.jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).errors.txt
+++ new.jsDeclarationsExportAssignedClassExpressionShadowing(target=es2015).errors.txt
@@= skipped -0, +0 lines =@@
-<no content>
+index.js(7,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
+index.js(12,16): error TS2339: Property 'Another' does not exist on type 'typeof Q'.
+
+
+==== index.js (2 errors) ====
+ class A {
+ member = new Q();
+ }
+ class Q {
+ x = 42;
+ }
+ module.exports = class Q {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ constructor() {
+ ~~~~~~~~~~~~~~~~~~~
+ this.x = new A();
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ }
+ ~~~~~
+ }
+ ~
+!!! error TS2309: An export assignment cannot be used in a module with other exported elements.
+ module.exports.Another = Q;
+ ~~~~~~~
+!!! error TS2339: Property 'Another' does not exist on type 'typeof Q'.
+