summaryrefslogtreecommitdiff
path: root/test/diagnostics/discard-returns.lua
blob: 2e3483908d1e06270b6f0b187b1099ad95d4014e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
TEST [[
---@nodiscard
local function f()
    return 1
end

<!f()!>
]]

TEST [[
---@nodiscard
local function f()
    return 1
end

X = f()
]]