diff options
Diffstat (limited to 'test-beta/definition/luadoc.lua')
-rw-r--r-- | test-beta/definition/luadoc.lua | 140 |
1 files changed, 0 insertions, 140 deletions
diff --git a/test-beta/definition/luadoc.lua b/test-beta/definition/luadoc.lua deleted file mode 100644 index 9360e27c..00000000 --- a/test-beta/definition/luadoc.lua +++ /dev/null @@ -1,140 +0,0 @@ -TEST [[ ----@class <!A!> ----@class B : <?A?> -]] - -TEST [[ ----@class <!A!> ----@type B|<?A?> -]] - -TEST [[ ----@class Class -local <?<!t!>?> ----@type Class -local x -]] - -TEST [[ ----@class Class -local <!t!> ----@type Class -local <?<!x!>?> -]] - -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() -]] - -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) -]] - -TEST [[ ----@alias <!B!> A ----@type <?B?> -]] - -TEST [[ ----@class <!Class!> ----@param a <?Class?> -]] - -TEST [[ ----@param f <!fun():void!> -function t(<?<!f!>?>) end -]] - -TEST [[ ----@overload fun(y: boolean) ----@param x number ----@param y boolean ----@param z string -function <!f!>(x, y, z) end - -print(<?f?>) -]] - -TEST [[ -local function f() - return 1 -end - ----@class Class -local <!mt!> - ----@type Class -local <?<!x!>?> = f() -]] - -TEST [[ ----@class Class ----@field <!name!> string ----@field id integer -local mt = {} -mt.<?name?> -]] - -TEST [[ ----@alias <!A!> string - ----@type <?A?> -]] - --- TODO -do return end -TEST [[ ----@class loli -local unit - -function unit:<!pants!>() -end - ----@see loli#<?pants?> -]] |