blob: 81e972eea888c1206ffc2f1b8227e2e90aa05ef7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
TEST [[
---@param cb fun()
local function f(cb)
return cb
end
---@async
local function af()
return nil
end
f(<!af!>)
]]
TEST [[
---@param cb async fun()
local function f(cb)
return cb
end
---@async
local function af()
return nil
end
f(af)
]]
TEST [[
local function f(cb)
cb()
end
---@async
local function af()
f(function () ---@async
return nil
end)
end
return af
]]
TEST [[
local _ = type(function () ---@async
return nil
end)
]]
|