@@ -2,6 +2,10 @@ tests/cases/conformance/salsa/a.js(4,17): error TS2339: Property 'toFixed' does
2
2
Property 'toFixed' does not exist on type 'string'.
3
3
tests/cases/conformance/salsa/a.js(5,16): error TS2339: Property 'toFixed' does not exist on type 'string | number'.
4
4
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'.
5
9
6
10
7
11
==== 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
21
25
==== tests/cases/conformance/salsa/requires.d.ts (0 errors) ====
22
26
declare var module: { exports: any };
23
27
declare function require(name: string): any;
24
- ==== tests/cases/conformance/salsa/mod1.js (0 errors) ====
28
+ ==== tests/cases/conformance/salsa/mod1.js (4 errors) ====
25
29
/// <reference path='./requires.d.ts' />
26
30
module.exports.bothBefore = 'string'
31
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
32
+ !!! error TS2323: Cannot redeclare exported variable 'bothBefore'.
27
33
A.justExport = 4
28
34
A.bothBefore = 2
35
+ ~~~~~~~~~~~~
36
+ !!! error TS2323: Cannot redeclare exported variable 'bothBefore'.
29
37
A.bothAfter = 3
38
+ ~~~~~~~~~~~
39
+ !!! error TS2323: Cannot redeclare exported variable 'bothAfter'.
30
40
module.exports = A
31
41
function A() {
32
42
this.p = 1
33
43
}
34
44
module.exports.bothAfter = 'string'
45
+ ~~~~~~~~~~~~~~~~~~~~~~~~
46
+ !!! error TS2323: Cannot redeclare exported variable 'bothAfter'.
35
47
module.exports.justProperty = 'string'
36
48
0 commit comments