File tree 3 files changed +40
-15
lines changed
3 files changed +40
-15
lines changed Original file line number Diff line number Diff line change
1
+ // https://github.com/microsoft/TypeScript/pull/50538
2
+
3
+ declare module "main" {
4
+ export const main : ( { conflict } : {
5
+ conflict : number ;
6
+ } , { conflict } : {
7
+ conflict : number ;
8
+ } , { dupe, dupe } : {
9
+ dupe : number ;
10
+ } , { function : e } : {
11
+ function : number ;
12
+ } ) => number ;
13
+ }
Original file line number Diff line number Diff line change @@ -6,29 +6,41 @@ npm install
6
6
7
7
``` shell
8
8
npm run build
9
-
10
- # > build
11
- # > npm run --quiet build --workspaces
12
- #
13
- #
14
- # > build
15
- # > tsc --declaration --emitDeclarationOnly --outfile ../4.7.4.d.ts ../main.ts
16
- #
17
- # > build
18
- # > tsc --declaration --emitDeclarationOnly --outfile ../4.8.3.d.ts ../main.ts
19
9
```
20
10
21
11
``` shell
22
- npm run lint
12
+ npm run --silent lint 4.7.4.d.ts
23
13
24
- # > lint
25
- # > tsc --noEmit *.d.ts
26
- #
14
+ npm run --silent lint 4.8.3.d.ts
27
15
# 4.8.3.d.ts:8:19 - error TS1005: ':' expected.
28
16
#
29
17
# 8 }, { function }: {
30
18
# ~
31
19
#
32
20
#
33
21
# Found 1 error in 4.8.3.d.ts:8
22
+
23
+ npm run --silent lint 50538.d.ts
24
+ # 50538.d.ts:4:27 - error TS2300: Duplicate identifier 'conflict'.
25
+ #
26
+ # 4 export const main: ({ conflict }: {
27
+ # ~~~~~~~~
28
+ #
29
+ # 50538.d.ts:6:10 - error TS2300: Duplicate identifier 'conflict'.
30
+ #
31
+ # 6 }, { conflict }: {
32
+ # ~~~~~~~~
33
+ #
34
+ # 50538.d.ts:8:10 - error TS2300: Duplicate identifier 'dupe'.
35
+ #
36
+ # 8 }, { dupe, dupe }: {
37
+ # ~~~~
38
+ #
39
+ # 50538.d.ts:8:16 - error TS2300: Duplicate identifier 'dupe'.
40
+ #
41
+ # 8 }, { dupe, dupe }: {
42
+ # ~~~~
43
+ #
44
+ #
45
+ # Found 4 errors in the same file, starting at: 50538.d.ts:4
34
46
```
Original file line number Diff line number Diff line change 1
1
{
2
2
"scripts" : {
3
3
"build" : " npm run build --workspaces" ,
4
- "lint" : " tsc --noEmit *.d.ts "
4
+ "lint" : " tsc --noEmit"
5
5
},
6
6
"workspaces" : [
7
7
" 4.7.4" ,
You can’t perform that action at this time.
0 commit comments