warningclasses, enums, decorators
W3021
Lexical binding named like a core decorator is not a re-export of it (ignored in decorator position)
Warnings fail a build only with --deny-warnings. Change this one's level in wowlua.json: "check": { "lints": { "W3021": "allow" } } (or "deny").
Related: E3021, the error form: Decorator not applicable to this target (including user decorators on enums, interfaces and aliases)
Where the specification covers it
- Appendix C. Decision Log · Toolchain
- 4. Decorators · 4.2 Name resolution
Nearby codes
| code | summary |
|---|---|
| W2055 | Too many arguments to an unannotated function (basic mode). Replaces the second meaning of W2006. |
| W2060 | Division or modulo by a literal zero: WoW raises "Division by zero" (any mode) |
| W2057 | coroutine.yield inside a function passed to pcall/xpcall/a C callback (cannot yield across that boundary in Lua 5.1) |
| W3030 | Use of a @deprecated declaration |
| W3031 | @inline ignored |
| W4001 | Unknown TOC directive in addon.toc-extra |