diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-07-13 15:52:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-07-13 15:52:59 +0800 |
commit | eeacdf95e177f9334f86b22491bcd43604f07b6c (patch) | |
tree | 7753d89a3024dc04af80aa2f04f0f0577c518481 /test | |
parent | 13dca2e42ffd67b832e24206ee0157fb9073eb11 (diff) | |
download | lua-language-server-eeacdf95e177f9334f86b22491bcd43604f07b6c.zip |
修正诊断“重复的tablefield”对index的检测错误
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/normal.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/diagnostics/normal.lua b/test/diagnostics/normal.lua index a49858e5..b4af1f8e 100644 --- a/test/diagnostics/normal.lua +++ b/test/diagnostics/normal.lua @@ -287,6 +287,30 @@ return { ]] TEST [[ +return { + <!x = 1!>, + y = 2, + <!['x']!> = 3, +} +]] + +TEST [[ +return { + <!['x'] = 1!>, + y = 2, + <!['x']!> = 3, +} +]] + +TEST [[ +return { + <!['x'] = 1!>, + y = 2, + <!x!> = 3, +} +]] + +TEST [[ local m = {} function m.open() end |