We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 197a42a commit 17719e8Copy full SHA for 17719e8
1 file changed
src/compiler/checker.ts
@@ -2169,7 +2169,7 @@ module ts {
2169
// function fun(...[a, ...b]) { }
2170
//
2171
// Normally, in ES6, the implied type of an array binding pattern with a rest element is
2172
- // an iterable. However, there is a requirement in our grammar checker that all rest
+ // an iterable. However, there is a requirement in our type system that all rest
2173
// parameters be array types. To satisfy this, we have an exception to the rule that
2174
// says the type of an array binding pattern with a rest element is an array type
2175
// if it is *itself* in a rest parameter. It will still be compatible with a spreaded
0 commit comments