diff options
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r-- | test/diagnostics/init.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index 4e485d2a..d95bf380 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -350,8 +350,7 @@ TEST [[ --<!function F() end!> --]] -config.config.diagnostics.disable['unused-local'] = false -config.config.diagnostics.disable['unused-function'] = true +config.config.diagnostics.disable['unused-local'] = nil TEST [[ local mt, x function mt:m() @@ -833,7 +832,7 @@ TEST [[ ---@class class local t ]] - +---[==[ -- checkUndefinedField 通用 TEST [[ ---@class Foo @@ -960,3 +959,10 @@ print(T1.f1) T2 = {} print(T2.<!f2!>) ]] +--]==] +TEST [[ +---@overload fun(...) +local function f() end + +f(1) +]] |