File tree Expand file tree Collapse file tree 3 files changed +40
-15
lines changed Expand file tree Collapse file tree 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
66
77``` shell
88npm 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
199```
2010
2111``` shell
22- npm run lint
12+ npm run --silent lint 4.7.4.d.ts
2313
24- # > lint
25- # > tsc --noEmit *.d.ts
26- #
14+ npm run --silent lint 4.8.3.d.ts
2715# 4.8.3.d.ts:8:19 - error TS1005: ':' expected.
2816#
2917# 8 }, { function }: {
3018# ~
3119#
3220#
3321# 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
3446```
Original file line number Diff line number Diff line change 11{
22 "scripts" : {
33 "build" : " npm run build --workspaces" ,
4- "lint" : " tsc --noEmit *.d.ts "
4+ "lint" : " tsc --noEmit"
55 },
66 "workspaces" : [
77 " 4.7.4" ,
You can’t perform that action at this time.
0 commit comments