You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/baselines/reference/capturedParametersInInitializers2.errors.txt
+1-4
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,10 @@
1
1
capturedParametersInInitializers2.ts(3,20): error TS2373: Parameter 'y' cannot reference identifier 'x' declared after it.
2
2
capturedParametersInInitializers2.ts(4,14): error TS2373: Parameter 'y' cannot reference identifier 'x' declared after it.
3
3
capturedParametersInInitializers2.ts(6,10): error TS2373: Parameter 'y' cannot reference identifier 'z' declared after it.
4
-
capturedParametersInInitializers2.ts(13,26): error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type.
5
4
capturedParametersInInitializers2.ts(13,27): error TS2373: Parameter 'y' cannot reference identifier 'x' declared after it.
Copy file name to clipboardexpand all lines: tests/baselines/reference/complicatedPrivacy.errors.txt
+1-4
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,9 @@
1
1
complicatedPrivacy.ts(11,24): error TS1054: A 'get' accessor cannot have parameters.
2
-
complicatedPrivacy.ts(35,5): error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.
3
2
complicatedPrivacy.ts(35,6): error TS2693: 'number' only refers to a type, but is being used as a value here.
4
3
complicatedPrivacy.ts(73,55): error TS2694: Namespace 'mglo5' has no exported member 'i6'.
5
4
6
5
7
-
==== complicatedPrivacy.ts (4 errors) ====
6
+
==== complicatedPrivacy.ts (3 errors) ====
8
7
module m1 {
9
8
export module m2 {
10
9
@@ -42,8 +41,6 @@ complicatedPrivacy.ts(73,55): error TS2694: Namespace 'mglo5' has no exported me
42
41
export function f4(arg1:
43
42
{
44
43
[number]: C1; // Used to be indexer, now it is a computed property
45
-
~~~~~~~~
46
-
!!! error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.
47
44
~~~~~~
48
45
!!! error TS2693: 'number' only refers to a type, but is being used as a value here.
Copy file name to clipboardexpand all lines: tests/baselines/reference/computedPropertiesNarrowed.errors.txt
+5-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
computedPropertiesNarrowed.ts(5,5): error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
2
2
computedPropertiesNarrowed.ts(11,5): error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
3
3
computedPropertiesNarrowed.ts(18,20): error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
4
+
computedPropertiesNarrowed.ts(20,5): error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
4
5
computedPropertiesNarrowed.ts(22,5): error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
5
6
computedPropertiesNarrowed.ts(26,5): error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
6
7
computedPropertiesNarrowed.ts(31,5): error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
0 commit comments