From afcc88cf0175e27312d352f37dd89879c849e921 Mon Sep 17 00:00:00 2001 From: Joey Watts Date: Wed, 26 Jun 2019 14:04:23 -0400 Subject: [PATCH] Update baselines for private name errors Signed-off-by: Joey Watts --- .../privateNameConstructorReserved.errors.txt | 4 ++-- .../privateNameInObjectLiteral-1.errors.txt | 4 ++-- .../privateNameInObjectLiteral-2.errors.txt | 4 ++-- ...eNameNotAccessibleOutsideDefiningClass.errors.txt | 4 ++-- .../privateNamesAndGenericClasses-2.errors.txt | 4 ++-- .../privateNamesInGenericClasses.errors.txt | 4 ++-- .../reference/privateNamesInNestedClasses.errors.txt | 4 ++-- .../privateNamesNoAccessibilityModifiers.errors.txt | 12 ++++++------ .../reference/privateNamesNoDelete.errors.txt | 4 ++-- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/tests/baselines/reference/privateNameConstructorReserved.errors.txt b/tests/baselines/reference/privateNameConstructorReserved.errors.txt index e69f3070d3462..a387876bce30e 100644 --- a/tests/baselines/reference/privateNameConstructorReserved.errors.txt +++ b/tests/baselines/reference/privateNameConstructorReserved.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/classes/members/privateNames/privateNameConstructorReserved.ts(4,5): error TS1811: '#constructor' is a reserved word. +tests/cases/conformance/classes/members/privateNames/privateNameConstructorReserved.ts(4,5): error TS18012: '#constructor' is a reserved word. ==== tests/cases/conformance/classes/members/privateNames/privateNameConstructorReserved.ts (1 errors) ==== @@ -7,6 +7,6 @@ tests/cases/conformance/classes/members/privateNames/privateNameConstructorReser class A { #constructor() {} // Error: `#constructor` is a reserved word. ~~~~~~~~~~~~ -!!! error TS1811: '#constructor' is a reserved word. +!!! error TS18012: '#constructor' is a reserved word. } \ No newline at end of file diff --git a/tests/baselines/reference/privateNameInObjectLiteral-1.errors.txt b/tests/baselines/reference/privateNameInObjectLiteral-1.errors.txt index 02d4d7b5f313f..bdfe78ee02a78 100644 --- a/tests/baselines/reference/privateNameInObjectLiteral-1.errors.txt +++ b/tests/baselines/reference/privateNameInObjectLiteral-1.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-1.ts(2,5): error TS18015: Private names are not allowed outside class bodies. +tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-1.ts(2,5): error TS18016: Private names are not allowed outside class bodies. ==== tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-1.ts (1 errors) ==== const obj = { #foo: 1 ~~~~ -!!! error TS18015: Private names are not allowed outside class bodies. +!!! error TS18016: Private names are not allowed outside class bodies. }; \ No newline at end of file diff --git a/tests/baselines/reference/privateNameInObjectLiteral-2.errors.txt b/tests/baselines/reference/privateNameInObjectLiteral-2.errors.txt index bfeb4ef94d7c0..a75b09041d830 100644 --- a/tests/baselines/reference/privateNameInObjectLiteral-2.errors.txt +++ b/tests/baselines/reference/privateNameInObjectLiteral-2.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-2.ts(2,5): error TS18015: Private names are not allowed outside class bodies. +tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-2.ts(2,5): error TS18016: Private names are not allowed outside class bodies. ==== tests/cases/conformance/classes/members/privateNames/privateNameInObjectLiteral-2.ts (1 errors) ==== const obj = { #foo() { ~~~~ -!!! error TS18015: Private names are not allowed outside class bodies. +!!! error TS18016: Private names are not allowed outside class bodies. } }; diff --git a/tests/baselines/reference/privateNameNotAccessibleOutsideDefiningClass.errors.txt b/tests/baselines/reference/privateNameNotAccessibleOutsideDefiningClass.errors.txt index 5b468faed1888..5b4b1c66695e3 100644 --- a/tests/baselines/reference/privateNameNotAccessibleOutsideDefiningClass.errors.txt +++ b/tests/baselines/reference/privateNameNotAccessibleOutsideDefiningClass.errors.txt @@ -1,5 +1,5 @@ tests/cases/conformance/classes/members/privateNames/privateNameNotAccessibleOutsideDefiningClass.ts(7,9): error TS2339: Property '#foo' does not exist on type 'A'. -tests/cases/conformance/classes/members/privateNames/privateNameNotAccessibleOutsideDefiningClass.ts(7,9): error TS18012: Property '#foo' is not accessible outside class 'A' because it has a private name. +tests/cases/conformance/classes/members/privateNames/privateNameNotAccessibleOutsideDefiningClass.ts(7,9): error TS18013: Property '#foo' is not accessible outside class 'A' because it has a private name. ==== tests/cases/conformance/classes/members/privateNames/privateNameNotAccessibleOutsideDefiningClass.ts (2 errors) ==== @@ -13,5 +13,5 @@ tests/cases/conformance/classes/members/privateNames/privateNameNotAccessibleOut ~~~~ !!! error TS2339: Property '#foo' does not exist on type 'A'. ~~~~ -!!! error TS18012: Property '#foo' is not accessible outside class 'A' because it has a private name. +!!! error TS18013: Property '#foo' is not accessible outside class 'A' because it has a private name. \ No newline at end of file diff --git a/tests/baselines/reference/privateNamesAndGenericClasses-2.errors.txt b/tests/baselines/reference/privateNamesAndGenericClasses-2.errors.txt index d35dd4fe728e8..58e321374b8c1 100644 --- a/tests/baselines/reference/privateNamesAndGenericClasses-2.errors.txt +++ b/tests/baselines/reference/privateNamesAndGenericClasses-2.errors.txt @@ -1,5 +1,5 @@ tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClasses-2.ts(24,3): error TS2339: Property '#foo' does not exist on type 'C'. -tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClasses-2.ts(24,3): error TS18012: Property '#foo' is not accessible outside class 'C' because it has a private name. +tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClasses-2.ts(24,3): error TS18013: Property '#foo' is not accessible outside class 'C' because it has a private name. tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClasses-2.ts(25,1): error TS2322: Type 'C' is not assignable to type 'C'. Type 'string' is not assignable to type 'number'. tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClasses-2.ts(26,1): error TS2322: Type 'C' is not assignable to type 'C'. @@ -34,7 +34,7 @@ tests/cases/conformance/classes/members/privateNames/privateNamesAndGenericClass ~~~~ !!! error TS2339: Property '#foo' does not exist on type 'C'. ~~~~ -!!! error TS18012: Property '#foo' is not accessible outside class 'C' because it has a private name. +!!! error TS18013: Property '#foo' is not accessible outside class 'C' because it has a private name. a = b; // Error ~ !!! error TS2322: Type 'C' is not assignable to type 'C'. diff --git a/tests/baselines/reference/privateNamesInGenericClasses.errors.txt b/tests/baselines/reference/privateNamesInGenericClasses.errors.txt index d32a4070d9752..f47a95f00b276 100644 --- a/tests/baselines/reference/privateNamesInGenericClasses.errors.txt +++ b/tests/baselines/reference/privateNamesInGenericClasses.errors.txt @@ -1,5 +1,5 @@ tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(10,3): error TS2339: Property '#foo' does not exist on type 'C'. -tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(10,3): error TS18012: Property '#foo' is not accessible outside class 'C' because it has a private name. +tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(10,3): error TS18013: Property '#foo' is not accessible outside class 'C' because it has a private name. tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(11,1): error TS2322: Type 'C' is not assignable to type 'C'. Type 'string' is not assignable to type 'number'. tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(12,1): error TS2322: Type 'C' is not assignable to type 'C'. @@ -20,7 +20,7 @@ tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasse ~~~~ !!! error TS2339: Property '#foo' does not exist on type 'C'. ~~~~ -!!! error TS18012: Property '#foo' is not accessible outside class 'C' because it has a private name. +!!! error TS18013: Property '#foo' is not accessible outside class 'C' because it has a private name. a = b; // Error ~ !!! error TS2322: Type 'C' is not assignable to type 'C'. diff --git a/tests/baselines/reference/privateNamesInNestedClasses.errors.txt b/tests/baselines/reference/privateNamesInNestedClasses.errors.txt index ac4559d4c8511..86aa021ad0326 100644 --- a/tests/baselines/reference/privateNamesInNestedClasses.errors.txt +++ b/tests/baselines/reference/privateNamesInNestedClasses.errors.txt @@ -1,5 +1,5 @@ tests/cases/conformance/classes/members/privateNames/privateNamesInNestedClasses.ts(13,18): error TS2339: Property '#foo' does not exist on type 'A'. -tests/cases/conformance/classes/members/privateNames/privateNamesInNestedClasses.ts(13,18): error TS18013: 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. +tests/cases/conformance/classes/members/privateNames/privateNamesInNestedClasses.ts(13,18): error TS18014: 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. ==== tests/cases/conformance/classes/members/privateNames/privateNamesInNestedClasses.ts (2 errors) ==== @@ -19,7 +19,7 @@ tests/cases/conformance/classes/members/privateNames/privateNamesInNestedClasses ~~~~ !!! error TS2339: Property '#foo' does not exist on type 'A'. ~~~~ -!!! error TS18013: 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. +!!! error TS18014: 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. } quux (b: B) { b.#foo; // OK diff --git a/tests/baselines/reference/privateNamesNoAccessibilityModifiers.errors.txt b/tests/baselines/reference/privateNamesNoAccessibilityModifiers.errors.txt index ce89fb8a76df1..079f4940d4ef5 100644 --- a/tests/baselines/reference/privateNamesNoAccessibilityModifiers.errors.txt +++ b/tests/baselines/reference/privateNamesNoAccessibilityModifiers.errors.txt @@ -1,6 +1,6 @@ -tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(4,12): error TS18009: Accessibility modifiers cannot be used with private names. -tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(5,13): error TS18009: Accessibility modifiers cannot be used with private names. -tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(6,15): error TS18009: Accessibility modifiers cannot be used with private names. +tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(4,12): error TS18010: Accessibility modifiers cannot be used with private names. +tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(5,13): error TS18010: Accessibility modifiers cannot be used with private names. +tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts(6,15): error TS18010: Accessibility modifiers cannot be used with private names. ==== tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibilityModifiers.ts (3 errors) ==== @@ -9,13 +9,13 @@ tests/cases/conformance/classes/members/privateNames/privateNamesNoAccessibility class A { public #foo = 3; // Error ~~~~ -!!! error TS18009: Accessibility modifiers cannot be used with private names. +!!! error TS18010: Accessibility modifiers cannot be used with private names. private #bar = 3; // Error ~~~~ -!!! error TS18009: Accessibility modifiers cannot be used with private names. +!!! error TS18010: Accessibility modifiers cannot be used with private names. protected #baz = 3; // Error ~~~~ -!!! error TS18009: Accessibility modifiers cannot be used with private names. +!!! error TS18010: Accessibility modifiers cannot be used with private names. readonly #qux = 3; // OK } \ No newline at end of file diff --git a/tests/baselines/reference/privateNamesNoDelete.errors.txt b/tests/baselines/reference/privateNamesNoDelete.errors.txt index c486f9751c16c..27c1ba93a77f4 100644 --- a/tests/baselines/reference/privateNamesNoDelete.errors.txt +++ b/tests/baselines/reference/privateNamesNoDelete.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/classes/members/privateNames/privateNamesNoDelete.ts(6,16): error TS18010: The operand of a delete operator cannot be a private name. +tests/cases/conformance/classes/members/privateNames/privateNamesNoDelete.ts(6,16): error TS18011: The operand of a delete operator cannot be a private name. ==== tests/cases/conformance/classes/members/privateNames/privateNamesNoDelete.ts (1 errors) ==== @@ -9,7 +9,7 @@ tests/cases/conformance/classes/members/privateNames/privateNamesNoDelete.ts(6,1 constructor() { delete this.#v; // Error: The operand of a delete operator cannot be a private name. ~~~~~~~ -!!! error TS18010: The operand of a delete operator cannot be a private name. +!!! error TS18011: The operand of a delete operator cannot be a private name. } } \ No newline at end of file