@@ -3,11 +3,16 @@ export namespace presentNs {
33 export const a = Symbol ( ) ;
44}
55
6+ const aliasing = Symbol ;
7+
68export type A = {
79 [ missing ] : number ,
810 [ ns . missing ] : number ,
911 [ presentNs . a ] : number ,
1012 [ Symbol . iterator ] : number ,
13+ [ globalThis . Symbol . toStringTag ] : number ,
14+ [ ( globalThis . Symbol ) . unscopables ] : number ,
15+ [ aliasing . isConcatSpreadable ] : number ,
1116 [ 1 ] : number ,
1217 [ "2" ] : number ,
1318 [ ( missing2 ) ] : number ,
@@ -19,6 +24,9 @@ export interface B {
1924 [ ns . missing ] : number ,
2025 [ presentNs . a ] : number ,
2126 [ Symbol . iterator ] : number ,
27+ [ globalThis . Symbol . toStringTag ] : number ,
28+ [ ( globalThis . Symbol ) . unscopables ] : number ,
29+ [ aliasing . isConcatSpreadable ] : number ,
2230 [ 1 ] : number ,
2331 [ "2" ] : number ,
2432 [ ( missing2 ) ] : number ,
@@ -30,6 +38,9 @@ export class C {
3038 [ ns . missing ] : number = 1 ;
3139 [ presentNs . a ] : number = 1 ;
3240 [ Symbol . iterator ] : number = 1 ;
41+ [ globalThis . Symbol . toStringTag ] : number = 1 ;
42+ [ ( globalThis . Symbol ) . unscopables ] : number = 1 ;
43+ [ aliasing . isConcatSpreadable ] : number = 1 ;
3344 [ 1 ] : number = 1 ;
3445 [ "2" ] : number = 1 ;
3546 [ ( missing2 ) ] : number = 1 ;
@@ -41,6 +52,9 @@ export const D = {
4152 [ ns . missing ] : 1 ,
4253 [ presentNs . a ] : 1 ,
4354 [ Symbol . iterator ] : 1 ,
55+ [ globalThis . Symbol . toStringTag ] : 1 ,
56+ [ ( globalThis . Symbol ) . unscopables ] : 1 ,
57+ [ aliasing . isConcatSpreadable ] : 1 ,
4458 [ 1 ] : 1 ,
4559 [ "2" ] : 1 ,
4660 [ ( missing2 ) ] : 1 ,
@@ -50,11 +64,14 @@ export const D = {
5064export declare namespace presentNs {
5165 const a : unique symbol ;
5266}
67+ declare const aliasing : SymbolConstructor ;
5368export type A = {
5469 [ missing ] : number ;
5570 [ ns . missing ] : number ;
5671 [ presentNs . a ] : number ;
5772 [ Symbol . iterator ] : number ;
73+ [ globalThis . Symbol . toStringTag ] : number ;
74+ [ aliasing . isConcatSpreadable ] : number ;
5875 [ 1 ] : number ;
5976 [ "2" ] : number ;
6077} ;
@@ -63,55 +80,76 @@ export interface B {
6380 [ ns . missing ] : number ;
6481 [ presentNs . a ] : number ;
6582 [ Symbol . iterator ] : number ;
83+ [ globalThis . Symbol . toStringTag ] : number ;
84+ [ aliasing . isConcatSpreadable ] : number ;
6685 [ 1 ] : number ;
6786 [ "2" ] : number ;
6887}
6988export declare class C {
89+ [ Symbol . iterator ] : number ;
90+ [ globalThis . Symbol . toStringTag ] : number ;
7091 [ 1 ] : number ;
7192 [ "2" ] : number ;
7293}
7394export declare const D : {
7495 [ x : string ] : number ;
7596 [ x : number ] : number ;
7697 [ presentNs . a ] : number ;
98+ [ aliasing . toStringTag ] : number ;
7799 1 : number ;
78100 "2" : number ;
79101} ;
102+ export { } ;
80103
81104
82105//// [Diagnostics reported]
83106declarationComputedPropertyNames . ts ( 2 , 18 ) : error TS9010: Variable must have an explicit type annotation with -- isolatedDeclarations .
84- declarationComputedPropertyNames . ts ( 12 , 5 ) : error TS9014: Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
107+ declarationComputedPropertyNames . ts ( 5 , 7 ) : error TS9010: Variable must have an explicit type annotation with -- isolatedDeclarations .
85108declarationComputedPropertyNames . ts ( 13 , 5 ) : error TS9014: Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
86- declarationComputedPropertyNames . ts ( 23 , 5 ) : error TS9014 : Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
87- declarationComputedPropertyNames . ts ( 24 , 5 ) : error TS9014 : Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
88- declarationComputedPropertyNames . ts ( 28 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
89- declarationComputedPropertyNames . ts ( 29 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
90- declarationComputedPropertyNames . ts ( 30 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
91- declarationComputedPropertyNames . ts ( 31 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
92- declarationComputedPropertyNames . ts ( 34 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
93- declarationComputedPropertyNames . ts ( 35 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
94- declarationComputedPropertyNames . ts ( 39 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
95- declarationComputedPropertyNames . ts ( 40 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
109+ declarationComputedPropertyNames . ts ( 17 , 5 ) : error TS9014 : Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
110+ declarationComputedPropertyNames . ts ( 18 , 5 ) : error TS9014 : Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
111+ declarationComputedPropertyNames . ts ( 27 , 5 ) : error TS9014 : Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
112+ declarationComputedPropertyNames . ts ( 31 , 5 ) : error TS9014 : Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
113+ declarationComputedPropertyNames . ts ( 32 , 5 ) : error TS9014 : Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
114+ declarationComputedPropertyNames . ts ( 36 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
115+ declarationComputedPropertyNames . ts ( 37 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
116+ declarationComputedPropertyNames . ts ( 38 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
96117declarationComputedPropertyNames . ts ( 41 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
97118declarationComputedPropertyNames . ts ( 42 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
98119declarationComputedPropertyNames . ts ( 45 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
99120declarationComputedPropertyNames . ts ( 46 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
121+ declarationComputedPropertyNames . ts ( 50 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
122+ declarationComputedPropertyNames . ts ( 51 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
123+ declarationComputedPropertyNames . ts ( 52 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
124+ declarationComputedPropertyNames . ts ( 55 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
125+ declarationComputedPropertyNames . ts ( 56 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
126+ declarationComputedPropertyNames . ts ( 59 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
127+ declarationComputedPropertyNames . ts ( 60 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
100128
101129
102- = === declarationComputedPropertyNames . ts ( 17 errors ) === =
130+ = === declarationComputedPropertyNames . ts ( 22 errors ) === =
103131 export namespace presentNs {
104132 export const a = Symbol ( ) ;
105133 ~
106134! ! ! error TS9010 : Variable must have an explicit type annotation with -- isolatedDeclarations .
107135! ! ! related TS9027 declarationComputedPropertyNames . ts :2 :18 : Add a type annotation to the variable a .
108136 }
109137
138+ const aliasing = Symbol ;
139+ ~ ~ ~ ~ ~ ~ ~ ~
140+ ! ! ! error TS9010 : Variable must have an explicit type annotation with -- isolatedDeclarations .
141+ ! ! ! related TS9027 declarationComputedPropertyNames . ts :5 :7 : Add a type annotation to the variable aliasing .
142+
110143 export type A = {
111144 [ missing ] : number ,
112145 [ ns . missing ] : number ,
113146 [ presentNs . a ] : number ,
114147 [ Symbol . iterator ] : number ,
148+ [ globalThis . Symbol . toStringTag ] : number ,
149+ [ ( globalThis . Symbol ) . unscopables ] : number ,
150+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
151+ ! ! ! error TS9014 : Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
152+ [ aliasing . isConcatSpreadable ] : number ,
115153 [ 1 ] : number ,
116154 [ "2" ] : number ,
117155 [ ( missing2 ) ] : number,
@@ -127,6 +165,11 @@ declarationComputedPropertyNames.ts(46,5): error TS9038: Computed property names
127165 [ ns . missing ] : number ,
128166 [ presentNs . a ] : number ,
129167 [ Symbol . iterator ] : number ,
168+ [ globalThis . Symbol . toStringTag ] : number ,
169+ [ ( globalThis . Symbol ) . unscopables ] : number ,
170+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
171+ ! ! ! error TS9014 : Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
172+ [ aliasing . isConcatSpreadable ] : number ,
130173 [ 1 ] : number ,
131174 [ "2" ] : number ,
132175 [ ( missing2 ) ] : number,
@@ -148,7 +191,12 @@ declarationComputedPropertyNames.ts(46,5): error TS9038: Computed property names
148191 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
149192! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
150193 [ Symbol . iterator ] : number = 1 ;
151- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
194+ [ globalThis . Symbol . toStringTag ] : number = 1 ;
195+ [ ( globalThis . Symbol ) . unscopables ] : number = 1 ;
196+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
197+ ! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
198+ [ aliasing . isConcatSpreadable ] : number = 1 ;
199+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
152200! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
153201 [ 1 ] : number = 1 ;
154202 [ "2" ] : number = 1 ;
@@ -164,28 +212,34 @@ declarationComputedPropertyNames.ts(46,5): error TS9038: Computed property names
164212 [ missing ] : 1 ,
165213 ~ ~ ~ ~ ~ ~ ~ ~ ~
166214! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
167- ! ! ! related TS9027 declarationComputedPropertyNames . ts :38 :14 : Add a type annotation to the variable D .
215+ ! ! ! related TS9027 declarationComputedPropertyNames . ts :49 :14 : Add a type annotation to the variable D .
168216 [ ns . missing ] : 1 ,
169217 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
170218! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
171- ! ! ! related TS9027 declarationComputedPropertyNames . ts :38 :14 : Add a type annotation to the variable D .
219+ ! ! ! related TS9027 declarationComputedPropertyNames . ts :49 :14 : Add a type annotation to the variable D .
172220 [ presentNs . a ] : 1 ,
173221 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
174222! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
175- ! ! ! related TS9027 declarationComputedPropertyNames . ts :38 :14 : Add a type annotation to the variable D .
223+ ! ! ! related TS9027 declarationComputedPropertyNames . ts :49 :14 : Add a type annotation to the variable D .
176224 [ Symbol . iterator ] : 1 ,
177- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
225+ [ globalThis . Symbol . toStringTag ] : 1 ,
226+ [ ( globalThis . Symbol ) . unscopables ] : 1 ,
227+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
228+ ! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
229+ ! ! ! related TS9027 declarationComputedPropertyNames . ts :49 :14 : Add a type annotation to the variable D .
230+ [ aliasing . isConcatSpreadable ] : 1 ,
231+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
178232! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
179- ! ! ! related TS9027 declarationComputedPropertyNames . ts :38 :14 : Add a type annotation to the variable D .
233+ ! ! ! related TS9027 declarationComputedPropertyNames . ts :49 :14 : Add a type annotation to the variable D .
180234 [ 1 ] : 1 ,
181235 [ "2" ] : 1 ,
182236 [ ( missing2 ) ] : 1 ,
183237 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
184238! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
185- ! ! ! related TS9027 declarationComputedPropertyNames . ts :38 :14 : Add a type annotation to the variable D .
239+ ! ! ! related TS9027 declarationComputedPropertyNames . ts :49 :14 : Add a type annotation to the variable D .
186240 [ Math . random ( ) > 0.5 ? "f1" : "f2" ] : 1 ,
187241 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
188242! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
189- ! ! ! related TS9027 declarationComputedPropertyNames . ts :38 :14 : Add a type annotation to the variable D .
243+ ! ! ! related TS9027 declarationComputedPropertyNames . ts :49 :14 : Add a type annotation to the variable D .
190244 } ;
191245
0 commit comments