mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Change test comment and accept baseline
This commit is contained in:
@@ -69,7 +69,7 @@ tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration4.ts(
|
||||
|
||||
var temp = [1, 2, 3];
|
||||
class C {
|
||||
constructor(public ...temp) { } // Error, rest parameter can't have accessibilityModifier
|
||||
constructor(public ...temp) { } // Error, rest parameter can't have properties
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1317: A parameter property cannot be declared using a rest parameter.
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ a6([1, 2, "string"]); // Error, parameter type is number[]
|
||||
|
||||
var temp = [1, 2, 3];
|
||||
class C {
|
||||
constructor(public ...temp) { } // Error, rest parameter can't have accessibilityModifier
|
||||
constructor(public ...temp) { } // Error, rest parameter can't have properties
|
||||
}
|
||||
|
||||
// Rest parameter with generic
|
||||
@@ -89,7 +89,7 @@ var C = (function () {
|
||||
temp[_i - 0] = arguments[_i];
|
||||
}
|
||||
this.temp = temp;
|
||||
} // Error, rest parameter can't have accessibilityModifier
|
||||
} // Error, rest parameter can't have properties
|
||||
return C;
|
||||
}());
|
||||
// Rest parameter with generic
|
||||
|
||||
@@ -26,7 +26,7 @@ a6([1, 2, "string"]); // Error, parameter type is number[]
|
||||
|
||||
var temp = [1, 2, 3];
|
||||
class C {
|
||||
constructor(public ...temp) { } // Error, rest parameter can't have accessibilityModifier
|
||||
constructor(public ...temp) { } // Error, rest parameter can't have properties
|
||||
}
|
||||
|
||||
// Rest parameter with generic
|
||||
|
||||
Reference in New Issue
Block a user