add param to list of duplicate declaration kinds - fixes #1084
This commit is contained in:
parent
5390715705
commit
bc5f2b9be6
@ -223,6 +223,7 @@ export default class Scope {
|
||||
if (kind === "param") return;
|
||||
if (kind === "hoisted" && local.kind === "let") return;
|
||||
|
||||
if (local.kind === "let" || local.kind === "const" || local.kind === "module" || local.kind === "param") {
|
||||
if (local.kind === "let" || local.kind === "const" || local.kind === "module") {
|
||||
throw this.file.errorWithNode(id, messages.get("scopeDuplicateDeclaration", name), TypeError);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user