Skip to content

Commit 6b216f5

Browse files
author
Andy Hanson
committed
Update baseline
1 parent 02d440d commit 6b216f5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/baselines/reference/moduleExportWithExportPropertyAssignment4.errors.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ tests/cases/conformance/salsa/a.js(4,17): error TS2339: Property 'toFixed' does
22
Property 'toFixed' does not exist on type 'string'.
33
tests/cases/conformance/salsa/a.js(5,16): error TS2339: Property 'toFixed' does not exist on type 'string | number'.
44
Property 'toFixed' does not exist on type 'string'.
5+
tests/cases/conformance/salsa/mod1.js(2,1): error TS2323: Cannot redeclare exported variable 'bothBefore'.
6+
tests/cases/conformance/salsa/mod1.js(4,1): error TS2323: Cannot redeclare exported variable 'bothBefore'.
7+
tests/cases/conformance/salsa/mod1.js(5,1): error TS2323: Cannot redeclare exported variable 'bothAfter'.
8+
tests/cases/conformance/salsa/mod1.js(10,1): error TS2323: Cannot redeclare exported variable 'bothAfter'.
59

610

711
==== tests/cases/conformance/salsa/a.js (2 errors) ====
@@ -21,16 +25,24 @@ tests/cases/conformance/salsa/a.js(5,16): error TS2339: Property 'toFixed' does
2125
==== tests/cases/conformance/salsa/requires.d.ts (0 errors) ====
2226
declare var module: { exports: any };
2327
declare function require(name: string): any;
24-
==== tests/cases/conformance/salsa/mod1.js (0 errors) ====
28+
==== tests/cases/conformance/salsa/mod1.js (4 errors) ====
2529
/// <reference path='./requires.d.ts' />
2630
module.exports.bothBefore = 'string'
31+
~~~~~~~~~~~~~~~~~~~~~~~~~
32+
!!! error TS2323: Cannot redeclare exported variable 'bothBefore'.
2733
A.justExport = 4
2834
A.bothBefore = 2
35+
~~~~~~~~~~~~
36+
!!! error TS2323: Cannot redeclare exported variable 'bothBefore'.
2937
A.bothAfter = 3
38+
~~~~~~~~~~~
39+
!!! error TS2323: Cannot redeclare exported variable 'bothAfter'.
3040
module.exports = A
3141
function A() {
3242
this.p = 1
3343
}
3444
module.exports.bothAfter = 'string'
45+
~~~~~~~~~~~~~~~~~~~~~~~~
46+
!!! error TS2323: Cannot redeclare exported variable 'bothAfter'.
3547
module.exports.justProperty = 'string'
3648

0 commit comments

Comments
 (0)