Disallow duplicate params in methods (#9599)

* Disallow duplicate params in methods

* Fix plugins
This commit is contained in:
Daniel Tschinder
2019-02-27 15:54:07 -08:00
committed by GitHub
parent 5cb280f986
commit 208195f425
9 changed files with 38 additions and 13 deletions

View File

@@ -0,0 +1,3 @@
class Foo {
bar(a, a) {}
}

View File

@@ -0,0 +1,3 @@
{
"throws": "Argument name clash (2:11)"
}

View File

@@ -0,0 +1,3 @@
({
bar(a, a) {}
})

View File

@@ -0,0 +1,3 @@
{
"throws": "Argument name clash (2:11)"
}