warningtypes
W2062warning
A value read past what a function of the package can give (a local function, a module's or an imported function, a file-level table's method; (each of its returns a fixed number of values) is always nil: a name past them in a local or an assignment, or select(n, …) with a literal n past them (any mode)
- area
- types
- fails the build
- with --deny-warnings
Warnings fail a build only with --deny-warnings. Change this one's level in wowlua.json: "check": { "lints": { "W2062": "allow" } } (or "deny").
Where the specification covers it
- Appendix C. Decision Log · Toolchain
- Appendix C. Decision Log · Standard library
- 2. Types · 2.8 Globals
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) |
| W2061 | a and nil or b (or false in the middle) is always b: the falsy middle value makes the or take over (any mode) |
| W2057 | coroutine.yield inside a function passed to pcall/xpcall/a C callback (cannot yield across that boundary in Lua 5.1) |
| W3021 | Lexical binding named like a core decorator is not a re-export of it (ignored in decorator position) |
| W3030 | Use of a @deprecated declaration |