Add omitted checkBinding call

This commit is contained in:
Tony Garnock-Jones 2021-05-21 16:14:58 +02:00
parent 0f1ea4aa20
commit 2bde06f509
1 changed files with 1 additions and 0 deletions

View File

@ -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}`);