Skip to content

Commit 36ff375

Browse files
committed
pass tests
1 parent 6b3354f commit 36ff375

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test/diagnostics/common.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,9 @@ _G.bb = 1
490490

491491
TEST [[
492492
local f = load('')
493-
f(1, 2, 3)
493+
if f then
494+
f(1, 2, 3)
495+
end
494496
]]
495497

496498
TEST [[

test/hover/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ TEST [[
280280
]]
281281
[=[
282282
function load(chunk: string|function, chunkname?: string, mode?: "b"|"bt"|"t", env?: table)
283-
-> function
284-
2. error_message: string
283+
-> function?
284+
2. error_message: string?
285285
]=]
286286

287287
TEST [[

0 commit comments

Comments
 (0)