diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-23 15:30:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-23 15:30:41 +0800 |
commit | 97f83b891d3f85bf8367e4a30467383e393e54a1 (patch) | |
tree | 6a78751fdd36ca4ca01942817d06f0f76ba15064 /test/diagnostics | |
parent | 5b9bf7b4a706ceedf70c4da59d5f8b62f053281a (diff) | |
parent | 2ab172bbd6e0f2eeed3388bd69947d3840e5ff15 (diff) | |
download | lua-language-server-97f83b891d3f85bf8367e4a30467383e393e54a1.zip |
Merge pull request #322 from uhziel/undefined-field-donot-check-table
undefined-field不要检测类型为table的,会出现很多误报
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index f5ea6964..4e485d2a 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -951,3 +951,12 @@ v2 = v v2:method1() v2:method2() -- 这个感觉实际应该报错更合适 ]] + +TEST [[ +---@type table +T1 = {} +print(T1.f1) +---@type table* +T2 = {} +print(T2.<!f2!>) +]] |