diff options
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/definition/emmy.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/server/test/definition/emmy.lua b/server/test/definition/emmy.lua index 73a5440c..82bac7a8 100644 --- a/server/test/definition/emmy.lua +++ b/server/test/definition/emmy.lua @@ -29,3 +29,35 @@ end local <!obj!> <?obj?>:cast() ]] + +TEST [[ +---@type A +local <?obj?> + +---@class A +local <!mt!> +]] + +TEST [[ +---@type A +local obj +obj:<?func?>() + +---@class A +local mt +function mt:<!func!>() +end +]] + +TEST [[ +---@type A +local obj +obj:<?func?>() + +local mt = {} +mt.__index = mt +function mt:<!func!>() +end +---@class A +local obj = setmetatable({}, mt) +]] |