quick-lint / quick-lint-js

quick-lint-js finds bugs in JavaScript programs
https://quick-lint-js.com
GNU General Public License v3.0
1.52k stars 192 forks source link

error on parameter decorator in overload signature #1125

Open strager opened 8 months ago

strager commented 8 months ago
function q(...args) {}
class C {
  // @q is invalid. This is an overload signature. quick-lint-js should diagnose this.
  f(a, @q b)
  // @q is okay. This is the main method.
  f(param1, @q param2) {}
}