summaryrefslogtreecommitdiff
path: root/server/test/definition/emmy.lua
blob: a98f334f43c0a898630c3b2a88c2b4f96f5ee771 (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
TEST [[
---@class <!A!>
---@class B : <?A?>
]]

TEST [[
---@class <!A!>
---@type B|<?A?>
]]

TEST [[
---@class A
local mt = {}
function mt:<!cast!>()
end

---@type A
local obj
obj:<?cast?>()
]]

--TEST [[
-----@class A
--local <!mt!> = {}
--function mt:cast()
--end
--
-----@type A
--local obj
--<?obj?>:cast()
--]]