Skip to content

Commit 18a435b

Browse files
committed
Fix merge conflicts
1 parent 54d464b commit 18a435b

20 files changed

+108
-294
lines changed

tests/baselines/reference/duplicateSymbolsExportMatching.errors.txt

Lines changed: 19 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,25 @@
1-
duplicateSymbolsExportMatching.ts(1,1): error TS1185: Merge conflict marker encountered.
2-
duplicateSymbolsExportMatching.ts(3,1): error TS1185: Merge conflict marker encountered.
3-
duplicateSymbolsExportMatching.ts(5,1): error TS1185: Merge conflict marker encountered.
4-
duplicateSymbolsExportMatching.ts(7,1): error TS1185: Merge conflict marker encountered.
5-
duplicateSymbolsExportMatching.ts(30,15): error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local.
6-
duplicateSymbolsExportMatching.ts(31,22): error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local.
7-
duplicateSymbolsExportMatching.ts(32,22): error TS2395: Individual declarations in merged declaration 'E' must be all exported or all local.
8-
duplicateSymbolsExportMatching.ts(33,15): error TS2395: Individual declarations in merged declaration 'E' must be all exported or all local.
9-
duplicateSymbolsExportMatching.ts(38,12): error TS2395: Individual declarations in merged declaration 'inst' must be all exported or all local.
10-
duplicateSymbolsExportMatching.ts(41,19): error TS2395: Individual declarations in merged declaration 'inst' must be all exported or all local.
11-
duplicateSymbolsExportMatching.ts(48,9): error TS2395: Individual declarations in merged declaration 'v' must be all exported or all local.
12-
duplicateSymbolsExportMatching.ts(49,16): error TS2395: Individual declarations in merged declaration 'v' must be all exported or all local.
13-
duplicateSymbolsExportMatching.ts(50,9): error TS2395: Individual declarations in merged declaration 'w' must be all exported or all local.
14-
duplicateSymbolsExportMatching.ts(51,16): error TS2395: Individual declarations in merged declaration 'w' must be all exported or all local.
15-
duplicateSymbolsExportMatching.ts(55,12): error TS2395: Individual declarations in merged declaration 'F' must be all exported or all local.
16-
duplicateSymbolsExportMatching.ts(55,12): error TS2434: A namespace declaration cannot be located prior to a class or function with which it is merged.
17-
duplicateSymbolsExportMatching.ts(58,21): error TS2395: Individual declarations in merged declaration 'F' must be all exported or all local.
18-
duplicateSymbolsExportMatching.ts(62,11): error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local.
19-
duplicateSymbolsExportMatching.ts(63,12): error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local.
20-
duplicateSymbolsExportMatching.ts(64,19): error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local.
21-
duplicateSymbolsExportMatching.ts(70,11): error TS2395: Individual declarations in merged declaration 'D' must be all exported or all local.
22-
duplicateSymbolsExportMatching.ts(71,18): error TS2395: Individual declarations in merged declaration 'D' must be all exported or all local.
1+
duplicateSymbolsExportMatching.ts(24,15): error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local.
2+
duplicateSymbolsExportMatching.ts(25,22): error TS2395: Individual declarations in merged declaration 'I' must be all exported or all local.
3+
duplicateSymbolsExportMatching.ts(26,22): error TS2395: Individual declarations in merged declaration 'E' must be all exported or all local.
4+
duplicateSymbolsExportMatching.ts(27,15): error TS2395: Individual declarations in merged declaration 'E' must be all exported or all local.
5+
duplicateSymbolsExportMatching.ts(32,12): error TS2395: Individual declarations in merged declaration 'inst' must be all exported or all local.
6+
duplicateSymbolsExportMatching.ts(35,19): error TS2395: Individual declarations in merged declaration 'inst' must be all exported or all local.
7+
duplicateSymbolsExportMatching.ts(42,9): error TS2395: Individual declarations in merged declaration 'v' must be all exported or all local.
8+
duplicateSymbolsExportMatching.ts(43,16): error TS2395: Individual declarations in merged declaration 'v' must be all exported or all local.
9+
duplicateSymbolsExportMatching.ts(44,9): error TS2395: Individual declarations in merged declaration 'w' must be all exported or all local.
10+
duplicateSymbolsExportMatching.ts(45,16): error TS2395: Individual declarations in merged declaration 'w' must be all exported or all local.
11+
duplicateSymbolsExportMatching.ts(49,12): error TS2395: Individual declarations in merged declaration 'F' must be all exported or all local.
12+
duplicateSymbolsExportMatching.ts(49,12): error TS2434: A namespace declaration cannot be located prior to a class or function with which it is merged.
13+
duplicateSymbolsExportMatching.ts(52,21): error TS2395: Individual declarations in merged declaration 'F' must be all exported or all local.
14+
duplicateSymbolsExportMatching.ts(56,11): error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local.
15+
duplicateSymbolsExportMatching.ts(57,12): error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local.
16+
duplicateSymbolsExportMatching.ts(58,19): error TS2395: Individual declarations in merged declaration 'C' must be all exported or all local.
17+
duplicateSymbolsExportMatching.ts(64,11): error TS2395: Individual declarations in merged declaration 'D' must be all exported or all local.
18+
duplicateSymbolsExportMatching.ts(65,18): error TS2395: Individual declarations in merged declaration 'D' must be all exported or all local.
2319

2420

25-
==== duplicateSymbolsExportMatching.ts (22 errors) ====
26-
<<<<<<< HEAD
27-
~~~~~~~
28-
!!! error TS1185: Merge conflict marker encountered.
29-
module M {
30-
||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
31-
~~~~~~~
32-
!!! error TS1185: Merge conflict marker encountered.
33-
namespace M {
34-
=======
35-
~~~~~~~
36-
!!! error TS1185: Merge conflict marker encountered.
21+
==== duplicateSymbolsExportMatching.ts (18 errors) ====
3722
namespace M {
38-
>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
39-
~~~~~~~
40-
!!! error TS1185: Merge conflict marker encountered.
4123
export interface E { }
4224
interface I { }
4325
}

tests/baselines/reference/duplicateSymbolsExportMatching.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
//// [tests/cases/compiler/duplicateSymbolsExportMatching.ts] ////
22

33
//// [duplicateSymbolsExportMatching.ts]
4-
<<<<<<< HEAD
5-
module M {
6-
||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
7-
namespace M {
8-
=======
94
namespace M {
10-
>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
115
export interface E { }
126
interface I { }
137
}
Lines changed: 41 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,143 +1,137 @@
11
//// [tests/cases/compiler/duplicateSymbolsExportMatching.ts] ////
22

33
=== duplicateSymbolsExportMatching.ts ===
4-
<<<<<<< HEAD
5-
module M {
6-
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more)
7-
8-
||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
94
namespace M {
10-
=======
11-
namespace M {
12-
>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
5+
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 3, 1), Decl(duplicateSymbolsExportMatching.ts, 7, 1), Decl(duplicateSymbolsExportMatching.ts, 27, 1), Decl(duplicateSymbolsExportMatching.ts, 45, 1) ... and 1 more)
6+
137
export interface E { }
14-
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 1, 10), Decl(duplicateSymbolsExportMatching.ts, 10, 10))
8+
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 0, 13), Decl(duplicateSymbolsExportMatching.ts, 4, 10))
159

1610
interface I { }
17-
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 7, 26))
11+
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 1, 26))
1812
}
1913
module M {
20-
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more)
14+
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 3, 1), Decl(duplicateSymbolsExportMatching.ts, 7, 1), Decl(duplicateSymbolsExportMatching.ts, 27, 1), Decl(duplicateSymbolsExportMatching.ts, 45, 1) ... and 1 more)
2115

2216
export interface E { } // ok
23-
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 1, 10), Decl(duplicateSymbolsExportMatching.ts, 10, 10))
17+
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 0, 13), Decl(duplicateSymbolsExportMatching.ts, 4, 10))
2418

2519
interface I { } // ok
26-
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 11, 26))
20+
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 5, 26))
2721
}
2822

2923
// Doesn't match export visibility, but it's in a different parent, so it's ok
3024
module M {
31-
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more)
25+
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 3, 1), Decl(duplicateSymbolsExportMatching.ts, 7, 1), Decl(duplicateSymbolsExportMatching.ts, 27, 1), Decl(duplicateSymbolsExportMatching.ts, 45, 1) ... and 1 more)
3226

3327
interface E { } // ok
34-
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 16, 10))
28+
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 10, 10))
3529

3630
export interface I { } // ok
37-
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 17, 19))
31+
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 11, 19))
3832
}
3933

4034
module N {
41-
>N : Symbol(N, Decl(duplicateSymbolsExportMatching.ts, 19, 1))
35+
>N : Symbol(N, Decl(duplicateSymbolsExportMatching.ts, 13, 1))
4236

4337
interface I { }
44-
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 21, 10), Decl(duplicateSymbolsExportMatching.ts, 22, 19))
38+
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 15, 10), Decl(duplicateSymbolsExportMatching.ts, 16, 19))
4539

4640
interface I { } // ok
47-
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 21, 10), Decl(duplicateSymbolsExportMatching.ts, 22, 19))
41+
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 15, 10), Decl(duplicateSymbolsExportMatching.ts, 16, 19))
4842

4943
export interface E { }
50-
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 23, 19), Decl(duplicateSymbolsExportMatching.ts, 24, 26))
44+
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 17, 19), Decl(duplicateSymbolsExportMatching.ts, 18, 26))
5145

5246
export interface E { } // ok
53-
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 23, 19), Decl(duplicateSymbolsExportMatching.ts, 24, 26))
47+
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 17, 19), Decl(duplicateSymbolsExportMatching.ts, 18, 26))
5448
}
5549

5650
module N2 {
57-
>N2 : Symbol(N2, Decl(duplicateSymbolsExportMatching.ts, 26, 1))
51+
>N2 : Symbol(N2, Decl(duplicateSymbolsExportMatching.ts, 20, 1))
5852

5953
interface I { }
60-
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 28, 11), Decl(duplicateSymbolsExportMatching.ts, 29, 19))
54+
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 22, 11), Decl(duplicateSymbolsExportMatching.ts, 23, 19))
6155

6256
export interface I { } // error
63-
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 29, 19))
57+
>I : Symbol(I, Decl(duplicateSymbolsExportMatching.ts, 23, 19))
6458

6559
export interface E { }
66-
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 30, 26))
60+
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 24, 26))
6761

6862
interface E { } // error
69-
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 30, 26), Decl(duplicateSymbolsExportMatching.ts, 31, 26))
63+
>E : Symbol(E, Decl(duplicateSymbolsExportMatching.ts, 24, 26), Decl(duplicateSymbolsExportMatching.ts, 25, 26))
7064
}
7165

7266
// Should report error only once for instantiated module
7367
module M {
74-
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more)
68+
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 3, 1), Decl(duplicateSymbolsExportMatching.ts, 7, 1), Decl(duplicateSymbolsExportMatching.ts, 27, 1), Decl(duplicateSymbolsExportMatching.ts, 45, 1) ... and 1 more)
7569

7670
module inst {
77-
>inst : Symbol(inst, Decl(duplicateSymbolsExportMatching.ts, 36, 10), Decl(duplicateSymbolsExportMatching.ts, 39, 5))
71+
>inst : Symbol(inst, Decl(duplicateSymbolsExportMatching.ts, 30, 10), Decl(duplicateSymbolsExportMatching.ts, 33, 5))
7872

7973
var t;
80-
>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 38, 11))
74+
>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 32, 11))
8175
}
8276
export module inst { // one error
83-
>inst : Symbol(inst, Decl(duplicateSymbolsExportMatching.ts, 39, 5))
77+
>inst : Symbol(inst, Decl(duplicateSymbolsExportMatching.ts, 33, 5))
8478

8579
var t;
86-
>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 41, 11))
80+
>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 35, 11))
8781
}
8882
}
8983

9084
// Variables of the same / different type
9185
module M2 {
92-
>M2 : Symbol(M2, Decl(duplicateSymbolsExportMatching.ts, 43, 1))
86+
>M2 : Symbol(M2, Decl(duplicateSymbolsExportMatching.ts, 37, 1))
9387

9488
var v: string;
95-
>v : Symbol(v, Decl(duplicateSymbolsExportMatching.ts, 47, 7), Decl(duplicateSymbolsExportMatching.ts, 48, 14))
89+
>v : Symbol(v, Decl(duplicateSymbolsExportMatching.ts, 41, 7), Decl(duplicateSymbolsExportMatching.ts, 42, 14))
9690

9791
export var v: string; // one error (visibility)
98-
>v : Symbol(v, Decl(duplicateSymbolsExportMatching.ts, 48, 14))
92+
>v : Symbol(v, Decl(duplicateSymbolsExportMatching.ts, 42, 14))
9993

10094
var w: number;
101-
>w : Symbol(w, Decl(duplicateSymbolsExportMatching.ts, 49, 7), Decl(duplicateSymbolsExportMatching.ts, 50, 14))
95+
>w : Symbol(w, Decl(duplicateSymbolsExportMatching.ts, 43, 7), Decl(duplicateSymbolsExportMatching.ts, 44, 14))
10296

10397
export var w: string; // two errors (visibility and type mismatch)
104-
>w : Symbol(w, Decl(duplicateSymbolsExportMatching.ts, 50, 14))
98+
>w : Symbol(w, Decl(duplicateSymbolsExportMatching.ts, 44, 14))
10599
}
106100

107101
module M {
108-
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more)
102+
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 3, 1), Decl(duplicateSymbolsExportMatching.ts, 7, 1), Decl(duplicateSymbolsExportMatching.ts, 27, 1), Decl(duplicateSymbolsExportMatching.ts, 45, 1) ... and 1 more)
109103

110104
module F {
111-
>F : Symbol(F, Decl(duplicateSymbolsExportMatching.ts, 56, 5), Decl(duplicateSymbolsExportMatching.ts, 53, 10))
105+
>F : Symbol(F, Decl(duplicateSymbolsExportMatching.ts, 50, 5), Decl(duplicateSymbolsExportMatching.ts, 47, 10))
112106

113107
var t;
114-
>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 55, 11))
108+
>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 49, 11))
115109
}
116110
export function F() { } // Only one error for duplicate identifier (don't consider visibility)
117-
>F : Symbol(F, Decl(duplicateSymbolsExportMatching.ts, 56, 5))
111+
>F : Symbol(F, Decl(duplicateSymbolsExportMatching.ts, 50, 5))
118112
}
119113

120114
module M {
121-
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 9, 1), Decl(duplicateSymbolsExportMatching.ts, 13, 1), Decl(duplicateSymbolsExportMatching.ts, 33, 1), Decl(duplicateSymbolsExportMatching.ts, 51, 1) ... and 1 more)
115+
>M : Symbol(M, Decl(duplicateSymbolsExportMatching.ts, 0, 0), Decl(duplicateSymbolsExportMatching.ts, 3, 1), Decl(duplicateSymbolsExportMatching.ts, 7, 1), Decl(duplicateSymbolsExportMatching.ts, 27, 1), Decl(duplicateSymbolsExportMatching.ts, 45, 1) ... and 1 more)
122116

123117
class C { }
124-
>C : Symbol(C, Decl(duplicateSymbolsExportMatching.ts, 60, 10), Decl(duplicateSymbolsExportMatching.ts, 61, 15), Decl(duplicateSymbolsExportMatching.ts, 62, 16))
118+
>C : Symbol(C, Decl(duplicateSymbolsExportMatching.ts, 54, 10), Decl(duplicateSymbolsExportMatching.ts, 55, 15), Decl(duplicateSymbolsExportMatching.ts, 56, 16))
125119

126120
module C { }
127-
>C : Symbol(C, Decl(duplicateSymbolsExportMatching.ts, 60, 10), Decl(duplicateSymbolsExportMatching.ts, 61, 15), Decl(duplicateSymbolsExportMatching.ts, 62, 16))
121+
>C : Symbol(C, Decl(duplicateSymbolsExportMatching.ts, 54, 10), Decl(duplicateSymbolsExportMatching.ts, 55, 15), Decl(duplicateSymbolsExportMatching.ts, 56, 16))
128122

129123
export module C { // Two visibility errors (one for the clodule symbol, and one for the merged container symbol)
130-
>C : Symbol(C, Decl(duplicateSymbolsExportMatching.ts, 62, 16))
124+
>C : Symbol(C, Decl(duplicateSymbolsExportMatching.ts, 56, 16))
131125

132126
var t;
133-
>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 64, 11))
127+
>t : Symbol(t, Decl(duplicateSymbolsExportMatching.ts, 58, 11))
134128
}
135129
}
136130

137131
// Top level
138132
interface D { }
139-
>D : Symbol(D, Decl(duplicateSymbolsExportMatching.ts, 66, 1), Decl(duplicateSymbolsExportMatching.ts, 69, 15))
133+
>D : Symbol(D, Decl(duplicateSymbolsExportMatching.ts, 60, 1), Decl(duplicateSymbolsExportMatching.ts, 63, 15))
140134

141135
export interface D { }
142-
>D : Symbol(D, Decl(duplicateSymbolsExportMatching.ts, 69, 15))
136+
>D : Symbol(D, Decl(duplicateSymbolsExportMatching.ts, 63, 15))
143137

tests/baselines/reference/duplicateSymbolsExportMatching.types

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
//// [tests/cases/compiler/duplicateSymbolsExportMatching.ts] ////
22

33
=== duplicateSymbolsExportMatching.ts ===
4-
<<<<<<< HEAD
5-
module M {
6-
||||||| parent of 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
7-
namespace M {
8-
=======
94
namespace M {
10-
>>>>>>> 42f6576e83 (Deprecate `--module amd`, `umd`, `system`, `none`; `--moduleResolution classic`; change defaults (#62669))
115
export interface E { }
126
interface I { }
137
}

0 commit comments

Comments
 (0)