v0.9.7
diagnostics / types
warningtypes

W2061warning

a and nil or b (or false in the middle) is always b: the falsy middle value makes the or take over (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": { "W2061": "allow" } } (or "deny").

Where the specification covers it

Nearby codes

codesummary
W2040Forbidden operation on a possibly secret value (basic mode)
W2055Too many arguments to an unannotated function (basic mode). Replaces the second meaning of W2006.
W2060Division or modulo by a literal zero: WoW raises "Division by zero" (any mode)
W2062A 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)
W2057coroutine.yield inside a function passed to pcall/xpcall/a C callback (cannot yield across that boundary in Lua 5.1)
W3021Lexical binding named like a core decorator is not a re-export of it (ignored in decorator position)

All diagnostics →