diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-07-15 14:15:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-15 14:15:26 +0800 |
commit | 9b26e22532a6424ef5ef55a2cf55d1a2c2d8b03c (patch) | |
tree | 93fc6cddb3729eea9ec9fcc5ef58e2df46c1dd52 /test/diagnostics | |
parent | e1c06d0697a89dd4cc4af0987c5f642142b93ebb (diff) | |
parent | 33ba77542e0dcec40a847d9e7430bc3c949fde87 (diff) | |
download | lua-language-server-9b26e22532a6424ef5ef55a2cf55d1a2c2d8b03c.zip |
Merge branch 'master' into luaReg
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/inject-field.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/diagnostics/inject-field.lua b/test/diagnostics/inject-field.lua index 9bb0f8fc..d5b49701 100644 --- a/test/diagnostics/inject-field.lua +++ b/test/diagnostics/inject-field.lua @@ -82,3 +82,16 @@ function m:init() -- OK end end ]] + +TEST [[ +---@class Class +local m = { + xx = 1, -- OK +} + +---@type Class +local m + +m.xx = 1 -- OK +m.<!yy!> = 1 -- Warning +]] |