Skip to content

Commit 43a65aa

Browse files
committed
accept baseline
1 parent a4fc202 commit 43a65aa

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/baselines/reference/privateNameInInExpression.errors.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts(21,29): error TS2571: Object is of type 'unknown'.
2-
tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts(23,19): error TS2304: Cannot find name '#fiel'.
32
tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts(23,19): error TS2339: Property '#fiel' does not exist on type 'any'.
43
tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts(25,20): error TS1451: Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression
5-
tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts(27,14): error TS1451: Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression
4+
tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts(27,14): error TS2304: Cannot find name '#field'.
65
tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts(27,14): error TS2406: The left-hand side of a 'for...in' statement must be a variable or a property access.
76
tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts(29,23): error TS2407: The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type 'boolean'.
87
tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts(43,27): error TS2531: Object is possibly 'null'.
98
tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts(114,12): error TS18016: Private identifiers are not allowed outside class bodies.
109

1110

12-
==== tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts (9 errors) ====
11+
==== tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.ts (8 errors) ====
1312
class Foo {
1413
#field = 1;
1514
static #staticField = 2;
@@ -36,8 +35,6 @@ tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.t
3635

3736
const b = #fiel in v; // Bad - typo in privateID
3837
~~~~~
39-
!!! error TS2304: Cannot find name '#fiel'.
40-
~~~~~
4138
!!! error TS2339: Property '#fiel' does not exist on type 'any'.
4239

4340
const c = (#field) in v; // Bad - privateID is not an expression on its own
@@ -46,7 +43,7 @@ tests/cases/conformance/classes/members/privateNames/privateNameInInExpression.t
4643

4744
for (#field in v) { /**/ } // Bad - 'in' not allowed
4845
~~~~~~
49-
!!! error TS1451: Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression
46+
!!! error TS2304: Cannot find name '#field'.
5047
~~~~~~
5148
!!! error TS2406: The left-hand side of a 'for...in' statement must be a variable or a property access.
5249

0 commit comments

Comments
 (0)