Skip to content

Commit 6a4400a

Browse files
committed
Accept binding pattern properties error baselines
1 parent 20f8c33 commit 6a4400a

6 files changed

+20
-20
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
tests/cases/compiler/declarationEmitDestructuringParameterProperties.ts(2,17): error TS1187: A parameter property may not be a binding pattern.
2-
tests/cases/compiler/declarationEmitDestructuringParameterProperties.ts(8,17): error TS1187: A parameter property may not be a binding pattern.
3-
tests/cases/compiler/declarationEmitDestructuringParameterProperties.ts(14,17): error TS1187: A parameter property may not be a binding pattern.
1+
tests/cases/compiler/declarationEmitDestructuringParameterProperties.ts(2,17): error TS1187: A parameter property may not be declared using a binding pattern.
2+
tests/cases/compiler/declarationEmitDestructuringParameterProperties.ts(8,17): error TS1187: A parameter property may not be declared using a binding pattern.
3+
tests/cases/compiler/declarationEmitDestructuringParameterProperties.ts(14,17): error TS1187: A parameter property may not be declared using a binding pattern.
44

55

66
==== tests/cases/compiler/declarationEmitDestructuringParameterProperties.ts (3 errors) ====
77
class C1 {
88
constructor(public [x, y, z]: string[]) {
99
~~~~~~~~~~~~~~~~~~~~~~~~~~
10-
!!! error TS1187: A parameter property may not be a binding pattern.
10+
!!! error TS1187: A parameter property may not be declared using a binding pattern.
1111
}
1212
}
1313

1414
type TupleType1 =[string, number, boolean];
1515
class C2 {
1616
constructor(public [x, y, z]: TupleType1) {
1717
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18-
!!! error TS1187: A parameter property may not be a binding pattern.
18+
!!! error TS1187: A parameter property may not be declared using a binding pattern.
1919
}
2020
}
2121

2222
type ObjType1 = { x: number; y: string; z: boolean }
2323
class C3 {
2424
constructor(public { x, y, z }: ObjType1) {
2525
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26-
!!! error TS1187: A parameter property may not be a binding pattern.
26+
!!! error TS1187: A parameter property may not be declared using a binding pattern.
2727
}
2828
}

tests/baselines/reference/destructuringParameterProperties1.errors.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(2,17): error TS1187: A parameter property may not be a binding pattern.
2-
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(9,17): error TS1187: A parameter property may not be a binding pattern.
3-
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(16,17): error TS1187: A parameter property may not be a binding pattern.
1+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(2,17): error TS1187: A parameter property may not be declared using a binding pattern.
2+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(9,17): error TS1187: A parameter property may not be declared using a binding pattern.
3+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(16,17): error TS1187: A parameter property may not be declared using a binding pattern.
44
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(22,26): error TS2339: Property 'x' does not exist on type 'C1'.
55
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(22,35): error TS2339: Property 'y' does not exist on type 'C1'.
66
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(22,43): error TS2339: Property 'y' does not exist on type 'C1'.
@@ -17,7 +17,7 @@ tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(2
1717
class C1 {
1818
constructor(public [x, y, z]: string[]) {
1919
~~~~~~~~~~~~~~~~~~~~~~~~~~
20-
!!! error TS1187: A parameter property may not be a binding pattern.
20+
!!! error TS1187: A parameter property may not be declared using a binding pattern.
2121
}
2222
}
2323

@@ -26,7 +26,7 @@ tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(2
2626
class C2 {
2727
constructor(public [x, y, z]: TupleType1) {
2828
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29-
!!! error TS1187: A parameter property may not be a binding pattern.
29+
!!! error TS1187: A parameter property may not be declared using a binding pattern.
3030
}
3131
}
3232

@@ -35,7 +35,7 @@ tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(2
3535
class C3 {
3636
constructor(public { x, y, z }: ObjType1) {
3737
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38-
!!! error TS1187: A parameter property may not be a binding pattern.
38+
!!! error TS1187: A parameter property may not be declared using a binding pattern.
3939
}
4040
}
4141

tests/baselines/reference/destructuringParameterProperties2.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(2,36): error TS1187: A parameter property may not be a binding pattern.
1+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(2,36): error TS1187: A parameter property may not be declared using a binding pattern.
22
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(3,59): error TS2339: Property 'b' does not exist on type 'C1'.
33
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(3,83): error TS2339: Property 'c' does not exist on type 'C1'.
44
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(4,18): error TS2339: Property 'a' does not exist on type 'C1'.
@@ -14,7 +14,7 @@ tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(2
1414
class C1 {
1515
constructor(private k: number, private [a, b, c]: [number, string, boolean]) {
1616
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17-
!!! error TS1187: A parameter property may not be a binding pattern.
17+
!!! error TS1187: A parameter property may not be declared using a binding pattern.
1818
if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) {
1919
~
2020
!!! error TS2339: Property 'b' does not exist on type 'C1'.

tests/baselines/reference/destructuringParameterProperties3.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(2,31): error TS1187: A parameter property may not be a binding pattern.
1+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(2,31): error TS1187: A parameter property may not be declared using a binding pattern.
22
tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(3,59): error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.
33
tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(3,83): error TS2339: Property 'c' does not exist on type 'C1<T, U, V>'.
44
tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(4,18): error TS2339: Property 'a' does not exist on type 'C1<T, U, V>'.
@@ -11,7 +11,7 @@ tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(1
1111
class C1<T, U, V> {
1212
constructor(private k: T, private [a, b, c]: [T,U,V]) {
1313
~~~~~~~~~~~~~~~~~~~~~~~~~~
14-
!!! error TS1187: A parameter property may not be a binding pattern.
14+
!!! error TS1187: A parameter property may not be declared using a binding pattern.
1515
if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) {
1616
~
1717
!!! error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.

tests/baselines/reference/destructuringParameterProperties4.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(3,31): error TS1187: A parameter property may not be a binding pattern.
1+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(3,31): error TS1187: A parameter property may not be declared using a binding pattern.
22
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(4,59): error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.
33
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(4,83): error TS2339: Property 'c' does not exist on type 'C1<T, U, V>'.
44
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(5,18): error TS2339: Property 'a' does not exist on type 'C1<T, U, V>'.
@@ -15,7 +15,7 @@ tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(2
1515
class C1<T, U, V> {
1616
constructor(private k: T, protected [a, b, c]: [T,U,V]) {
1717
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18-
!!! error TS1187: A parameter property may not be a binding pattern.
18+
!!! error TS1187: A parameter property may not be declared using a binding pattern.
1919
if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) {
2020
~
2121
!!! error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.

tests/baselines/reference/destructuringParameterProperties5.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(5,17): error TS1187: A parameter property may not be a binding pattern.
1+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(5,17): error TS1187: A parameter property may not be declared using a binding pattern.
22
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(5,27): error TS2459: Type '{ x: number; y: string; z: boolean; }' has no property 'x1' and no string index signature.
33
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(5,31): error TS2459: Type '{ x: number; y: string; z: boolean; }' has no property 'x2' and no string index signature.
44
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(5,35): error TS2459: Type '{ x: number; y: string; z: boolean; }' has no property 'x3' and no string index signature.
@@ -20,7 +20,7 @@ tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(1
2020
class C1 {
2121
constructor(public [{ x1, x2, x3 }, y, z]: TupleType1) {
2222
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23-
!!! error TS1187: A parameter property may not be a binding pattern.
23+
!!! error TS1187: A parameter property may not be declared using a binding pattern.
2424
~~
2525
!!! error TS2459: Type '{ x: number; y: string; z: boolean; }' has no property 'x1' and no string index signature.
2626
~~

0 commit comments

Comments
 (0)