Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitafcc88c

Browse files
author
Joey Watts
committed
Update baselines for private name errors
Signed-off-by: Joey Watts <jwatts43@bloomberg.net>
1 parent8a0d0c0 commitafcc88c

9 files changed

+22
-22
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/classes/members/privateNames/privateNameConstructorReserved.ts(4,5): errorTS1811: '#constructor' is a reserved word.
1+
tests/cases/conformance/classes/members/privateNames/privateNameConstructorReserved.ts(4,5): errorTS18012: '#constructor' is a reserved word.
22

33

44
==== tests/cases/conformance/classes/members/privateNames/privateNameConstructorReserved.ts (1 errors) ====
@@ -7,6 +7,6 @@ tests/cases/conformance/classes/members/privateNames/privateNameConstructorReser
77
class A {
88
#constructor() {} // Error: `#constructor` is a reserved word.
99
~~~~~~~~~~~~
10-
!!! errorTS1811: '#constructor' is a reserved word.
10+
!!! errorTS18012: '#constructor' is a reserved word.
1111
}
1212

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-1.ts(2,5): errorTS18015: Private names are not allowed outside class bodies.
1+
tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-1.ts(2,5): errorTS18016: Private names are not allowed outside class bodies.
22

33

44
==== tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-1.ts (1 errors) ====
55
const obj = {
66
#foo: 1
77
~~~~
8-
!!! errorTS18015: Private names are not allowed outside class bodies.
8+
!!! errorTS18016: Private names are not allowed outside class bodies.
99
};
1010

‎tests/baselines/reference/privateNameInObjectLiteral-2.errors.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-2.ts(2,5): errorTS18015: Private names are not allowed outside class bodies.
1+
tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-2.ts(2,5): errorTS18016: Private names are not allowed outside class bodies.
22

33

44
==== tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-2.ts (1 errors) ====
55
const obj = {
66
#foo() {
77
~~~~
8-
!!! errorTS18015: Private names are not allowed outside class bodies.
8+
!!! errorTS18016: Private names are not allowed outside class bodies.
99

1010
}
1111
};

‎tests/baselines/reference/privateNameNotAccessibleOutsideDefiningClass.errors.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/conformance/classes/members/privateNames/privateNameNotAccessibleOutsideDefiningClass.ts(7,9): error TS2339: Property '#foo' does not exist on type 'A'.
2-
tests/cases/conformance/classes/members/privateNames/privateNameNotAccessibleOutsideDefiningClass.ts(7,9): errorTS18012: Property '#foo' is not accessible outside class 'A' because it has a private name.
2+
tests/cases/conformance/classes/members/privateNames/privateNameNotAccessibleOutsideDefiningClass.ts(7,9): errorTS18013: Property '#foo' is not accessible outside class 'A' because it has a private name.
33

44

55
==== tests/cases/conformance/classes/members/privateNames/privateNameNotAccessibleOutsideDefiningClass.ts (2 errors) ====
@@ -13,5 +13,5 @@ tests/cases/conformance/classes/members/privateNames/privateNameNotAccessibleOut
1313
~~~~
1414
!!! error TS2339: Property '#foo' does not exist on type 'A'.
1515
~~~~
16-
!!! errorTS18012: Property '#foo' is not accessible outside class 'A' because it has a private name.
16+
!!! errorTS18013: Property '#foo' is not accessible outside class 'A' because it has a private name.
1717

‎tests/baselines/reference/privateNamesAndGenericClasses-2.errors.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClasses-2.ts(24,3): error TS2339: Property '#foo' does not exist on type 'C<number>'.
2-
tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClasses-2.ts(24,3): errorTS18012: Property '#foo' is not accessible outside class 'C<T>' because it has a private name.
2+
tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClasses-2.ts(24,3): errorTS18013: Property '#foo' is not accessible outside class 'C<T>' because it has a private name.
33
tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClasses-2.ts(25,1): error TS2322: Type 'C<string>' is not assignable to type 'C<number>'.
44
Type 'string' is not assignable to type 'number'.
55
tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClasses-2.ts(26,1): error TS2322: Type 'C<number>' is not assignable to type 'C<string>'.
@@ -34,7 +34,7 @@ tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClass
3434
~~~~
3535
!!! error TS2339: Property '#foo' does not exist on type 'C<number>'.
3636
~~~~
37-
!!! errorTS18012: Property '#foo' is not accessible outside class 'C<T>' because it has a private name.
37+
!!! errorTS18013: Property '#foo' is not accessible outside class 'C<T>' because it has a private name.
3838
a = b; // Error
3939
~
4040
!!! error TS2322: Type 'C<string>' is not assignable to type 'C<number>'.

‎tests/baselines/reference/privateNamesInGenericClasses.errors.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(10,3): error TS2339: Property '#foo' does not exist on type 'C<number>'.
2-
tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(10,3): errorTS18012: Property '#foo' is not accessible outside class 'C<T>' because it has a private name.
2+
tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(10,3): errorTS18013: Property '#foo' is not accessible outside class 'C<T>' because it has a private name.
33
tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(11,1): error TS2322: Type 'C<string>' is not assignable to type 'C<number>'.
44
Type 'string' is not assignable to type 'number'.
55
tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(12,1): error TS2322: Type 'C<number>' is not assignable to type 'C<string>'.
@@ -20,7 +20,7 @@ tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasse
2020
~~~~
2121
!!! error TS2339: Property '#foo' does not exist on type 'C<number>'.
2222
~~~~
23-
!!! errorTS18012: Property '#foo' is not accessible outside class 'C<T>' because it has a private name.
23+
!!! errorTS18013: Property '#foo' is not accessible outside class 'C<T>' because it has a private name.
2424
a = b; // Error
2525
~
2626
!!! error TS2322: Type 'C<string>' is not assignable to type 'C<number>'.

‎tests/baselines/reference/privateNamesInNestedClasses.errors.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/conformance/classes/members/privateNames/privateNamesInNestedClasses.ts(13,18): error TS2339: Property '#foo' does not exist on type 'A'.
2-
tests/cases/conformance/classes/members/privateNames/privateNamesInNestedClasses.ts(13,18): errorTS18013: This usage of '#foo' refers to the private member declared in its enclosing class. While type 'B' has a private member with the same spelling, its declaration and accessibility are distinct.
2+
tests/cases/conformance/classes/members/privateNames/privateNamesInNestedClasses.ts(13,18): errorTS18014: This usage of '#foo' refers to the private member declared in its enclosing class. While type 'B' has a private member with the same spelling, its declaration and accessibility are distinct.
33

44

55
==== tests/cases/conformance/classes/members/privateNames/privateNamesInNestedClasses.ts (2 errors) ====
@@ -19,7 +19,7 @@ tests/cases/conformance/classes/members/privateNames/privateNamesInNestedClasses
1919
~~~~
2020
!!! error TS2339: Property '#foo' does not exist on type 'A'.
2121
~~~~
22-
!!! errorTS18013: This usage of '#foo' refers to the private member declared in its enclosing class. While type 'B' has a private member with the same spelling, its declaration and accessibility are distinct.
22+
!!! errorTS18014: This usage of '#foo' refers to the private member declared in its enclosing class. While type 'B' has a private member with the same spelling, its declaration and accessibility are distinct.
2323
}
2424
quux (b: B) {
2525
b.#foo; // OK
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(4,12): errorTS18009: Accessibility modifiers cannot be used with private names.
2-
tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(5,13): errorTS18009: Accessibility modifiers cannot be used with private names.
3-
tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(6,15): errorTS18009: Accessibility modifiers cannot be used with private names.
1+
tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(4,12): errorTS18010: Accessibility modifiers cannot be used with private names.
2+
tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(5,13): errorTS18010: Accessibility modifiers cannot be used with private names.
3+
tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(6,15): errorTS18010: Accessibility modifiers cannot be used with private names.
44

55

66
==== tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts (3 errors) ====
@@ -9,13 +9,13 @@ tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibility
99
class A {
1010
public #foo = 3; // Error
1111
~~~~
12-
!!! errorTS18009: Accessibility modifiers cannot be used with private names.
12+
!!! errorTS18010: Accessibility modifiers cannot be used with private names.
1313
private #bar = 3; // Error
1414
~~~~
15-
!!! errorTS18009: Accessibility modifiers cannot be used with private names.
15+
!!! errorTS18010: Accessibility modifiers cannot be used with private names.
1616
protected #baz = 3; // Error
1717
~~~~
18-
!!! errorTS18009: Accessibility modifiers cannot be used with private names.
18+
!!! errorTS18010: Accessibility modifiers cannot be used with private names.
1919
readonly #qux = 3; // OK
2020
}
2121

‎tests/baselines/reference/privateNamesNoDelete.errors.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/classes/members/privateNames/privateNamesNoDelete.ts(6,16): errorTS18010: The operand of a delete operator cannot be a private name.
1+
tests/cases/conformance/classes/members/privateNames/privateNamesNoDelete.ts(6,16): errorTS18011: The operand of a delete operator cannot be a private name.
22

33

44
==== tests/cases/conformance/classes/members/privateNames/privateNamesNoDelete.ts (1 errors) ====
@@ -9,7 +9,7 @@ tests/cases/conformance/classes/members/privateNames/privateNamesNoDelete.ts(6,1
99
constructor() {
1010
delete this.#v; // Error: The operand of a delete operator cannot be a private name.
1111
~~~~~~~
12-
!!! errorTS18010: The operand of a delete operator cannot be a private name.
12+
!!! errorTS18011: The operand of a delete operator cannot be a private name.
1313
}
1414
}
1515

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp