@@ -87,6 +87,7 @@ export interface B {
8787}
8888export declare class C {
8989 [ x : number ] : number ;
90+ [ presentNs . a ] : number ;
9091 [ Symbol . iterator ] : number ;
9192 [ globalThis . Symbol . toStringTag ] : number ;
9293 [ 1 ] : number ;
@@ -113,12 +114,18 @@ declarationComputedPropertyNames.ts(27,5): error TS9014: Computed properties mus
113114declarationComputedPropertyNames . ts ( 31 , 5 ) : error TS9014 : Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
114115declarationComputedPropertyNames . ts ( 32 , 5 ) : error TS9014 : Computed properties must be number or string literals , variables or dotted expressions with -- isolatedDeclarations .
115116declarationComputedPropertyNames . ts ( 36 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
117+ declarationComputedPropertyNames . ts ( 36 , 6 ) : error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
116118declarationComputedPropertyNames . ts ( 37 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
117- declarationComputedPropertyNames . ts ( 38 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
119+ declarationComputedPropertyNames . ts ( 37 , 6 ) : error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
120+ declarationComputedPropertyNames . ts ( 38 , 6 ) : error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
118121declarationComputedPropertyNames . ts ( 41 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
122+ declarationComputedPropertyNames . ts ( 41 , 6 ) : error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
119123declarationComputedPropertyNames . ts ( 42 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
124+ declarationComputedPropertyNames . ts ( 42 , 6 ) : error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
120125declarationComputedPropertyNames . ts ( 45 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
126+ declarationComputedPropertyNames . ts ( 45 , 6 ) : error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
121127declarationComputedPropertyNames . ts ( 46 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
128+ declarationComputedPropertyNames . ts ( 46 , 6 ) : error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
122129declarationComputedPropertyNames . ts ( 50 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
123130declarationComputedPropertyNames . ts ( 51 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
124131declarationComputedPropertyNames . ts ( 52 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
@@ -128,7 +135,7 @@ declarationComputedPropertyNames.ts(59,5): error TS9038: Computed property names
128135declarationComputedPropertyNames . ts ( 60 , 5 ) : error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
129136
130137
131- = === declarationComputedPropertyNames . ts ( 22 errors ) === =
138+ = === declarationComputedPropertyNames . ts ( 28 errors ) === =
132139 export namespace presentNs {
133140 export const a = Symbol ( ) ;
134141 ~
@@ -185,28 +192,54 @@ declarationComputedPropertyNames.ts(60,5): error TS9038: Computed property names
185192 [ missing ] : number = 1 ;
186193 ~ ~ ~ ~ ~ ~ ~ ~ ~
187194! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
195+ ~ ~ ~ ~ ~ ~ ~
196+ ! ! ! error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
197+ ! ! ! related TS9029 declarationComputedPropertyNames . ts :36 :5 : Add a type annotation to the property [ missing ] .
198+ ! ! ! related TS9035 declarationComputedPropertyNames . ts :36 :6 : Add satisfies and a type assertion to this expression ( satisfies T as T ) to make the type explicit .
188199 [ ns . missing ] : number = 1 ;
189200 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
190201! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
202+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
203+ ! ! ! error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
204+ ! ! ! related TS9029 declarationComputedPropertyNames . ts :37 :5 : Add a type annotation to the property [ ns . missing ] .
205+ ! ! ! related TS9035 declarationComputedPropertyNames . ts :37 :6 : Add satisfies and a type assertion to this expression ( satisfies T as T ) to make the type explicit .
191206 [ presentNs . a ] : number = 1 ;
192- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
193- ! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
207+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
208+ ! ! ! error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
209+ ! ! ! related TS9029 declarationComputedPropertyNames . ts :38 :5 : Add a type annotation to the property [ presentNs . a ] .
210+ ! ! ! related TS9035 declarationComputedPropertyNames . ts :38 :6 : Add satisfies and a type assertion to this expression ( satisfies T as T ) to make the type explicit .
194211 [ Symbol . iterator ] : number = 1 ;
195212 [ globalThis . Symbol . toStringTag ] : number = 1 ;
196213 [ ( globalThis . Symbol ) . unscopables ] : number = 1 ;
197214 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
198215! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
216+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
217+ ! ! ! error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
218+ ! ! ! related TS9029 declarationComputedPropertyNames . ts :41 :5 : Add a type annotation to the property [ ( globalThis . Symbol ) . unscopables ] .
219+ ! ! ! related TS9035 declarationComputedPropertyNames . ts :41 :6 : Add satisfies and a type assertion to this expression ( satisfies T as T ) to make the type explicit .
199220 [ aliasing . isConcatSpreadable ] : number = 1 ;
200221 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
201222! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
223+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
224+ ! ! ! error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
225+ ! ! ! related TS9029 declarationComputedPropertyNames . ts :42 :5 : Add a type annotation to the property [ aliasing . isConcatSpreadable ] .
226+ ! ! ! related TS9035 declarationComputedPropertyNames . ts :42 :6 : Add satisfies and a type assertion to this expression ( satisfies T as T ) to make the type explicit .
202227 [ 1 ] : number = 1 ;
203228 [ "2" ] : number = 1 ;
204229 [ ( missing2 ) ] : number = 1 ;
205230 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
206231! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
232+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
233+ ! ! ! error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
234+ ! ! ! related TS9029 declarationComputedPropertyNames . ts :45 :5 : Add a type annotation to the property [ ( missing2 ) ] .
235+ ! ! ! related TS9035 declarationComputedPropertyNames . ts :45 :6 : Add satisfies and a type assertion to this expression ( satisfies T as T ) to make the type explicit .
207236 [ Math . random ( ) > 0.5 ? "f1" : "f2" ] : number = 1 ;
208237 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
209238! ! ! error TS9038 : Computed property names on class or object literals cannot be inferred with -- isolatedDeclarations .
239+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
240+ ! ! ! error TS9013 : Expression type can 't be inferred with --isolatedDeclarations.
241+ ! ! ! related TS9029 declarationComputedPropertyNames . ts :46 :5 : Add a type annotation to the property [ Math . random ( ) > 0.5 ? "f1" : "f2" ] .
242+ ! ! ! related TS9035 declarationComputedPropertyNames . ts :46 :6 : Add satisfies and a type assertion to this expression ( satisfies T as T ) to make the type explicit .
210243 }
211244
212245 export const D = {
0 commit comments