Add omitted checkBinding call
This commit is contained in:
parent
0f1ea4aa20
commit
2bde06f509
|
@ -49,6 +49,7 @@ class Checker {
|
|||
checkNamedPattern(scope: Set<string>, p: M.NamedPattern, context: string): void {
|
||||
switch (p._variant) {
|
||||
case 'named':
|
||||
this.checkBinding(scope, p.value.name, context);
|
||||
this.checkPattern(scope,
|
||||
M.Pattern.SimplePattern(p.value.pattern),
|
||||
`${p.value.name.description!} of ${context}`);
|
||||
|
|
Loading…
Reference in New Issue