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
tests/cases/conformance/classes/members/privateNames/privateNameNotAllowedOutsideClass.ts(1,7): error TS18029: Private identifiers are not allowed in variable declarations.
tests/cases/conformance/classes/members/privateNames/privateNamesAndIndexedAccess.ts(7,28): error TS2717: Subsequent property declarations must have the same type. Property '#bar' must be of type 'number', but here has type 'any'.
tests/cases/conformance/classes/members/privateNames/privateNamesAndIndexedAccess.ts(7,34): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
6
-
tests/cases/conformance/classes/members/privateNames/privateNamesAndIndexedAccess.ts(7,36): error TS7008: Member '3' implicitly has an 'any' type.
2
+
tests/cases/conformance/classes/members/privateNames/privateNamesAndIndexedAccess.ts(7,28): error TS7005: Variable '#bar' implicitly has an 'any' type.
!!! related TS1007 tests/cases/conformance/classes/members/privateNames/privateNamesAndIndexedAccess.ts:4:20: The parser expected to find a '}' to match the '{' token here.
22
19
~~~~
23
-
!!! error TS2300: Duplicate identifier '#bar'.
24
-
~~~~
25
-
!!! error TS2717: Subsequent property declarations must have the same type. Property '#bar' must be of type 'number', but here has type 'any'.
26
-
!!! related TS6203 tests/cases/conformance/classes/members/privateNames/privateNamesAndIndexedAccess.ts:3:5: '#bar' was also declared here.
20
+
!!! error TS7005: Variable '#bar' implicitly has an 'any' type.
27
21
~
28
-
!!! error TS1005: ';' expected.
22
+
!!! error TS1005: ',' expected.
29
23
~
30
-
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
24
+
!!! error TS1134: Variable declaration expected.
31
25
~
32
-
!!! error TS7008: Member '3' implicitly has an 'any' type.
26
+
!!! error TS1134: Variable declaration expected.
33
27
// will never use this syntax, already taken:
34
28
const badAlways: C["#bar"] = 3; // Error
35
29
~~~~~~
36
30
!!! error TS2339: Property '#bar' does not exist on type 'C'.
37
31
}
38
32
}
39
-
~
40
-
!!! error TS1128: Declaration or statement expected.
0 commit comments