diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-29 16:44:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-29 16:44:43 +0800 |
commit | 734d9c6abeffaf8f70ef043a7a960fdd6cf16ca1 (patch) | |
tree | a25317a492f36a79323a7c15f775b38c09f92589 /server/test/diagnostics/init.lua | |
parent | 41b4fe57bf46f5e67a8f41bde4ded038955e178d (diff) | |
download | lua-language-server-734d9c6abeffaf8f70ef043a7a960fdd6cf16ca1.zip |
new field call 的诊断
Diffstat (limited to 'server/test/diagnostics/init.lua')
-rw-r--r-- | server/test/diagnostics/init.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua index 555bc0a8..c854e5a2 100644 --- a/server/test/diagnostics/init.lua +++ b/server/test/diagnostics/init.lua @@ -185,6 +185,34 @@ print() ]] TEST [[ +return { + print + <!'string'!> +} +]] + +TEST [[ +return { + print + <!{ + x = 1, + }!> +} +]] + +TEST [[ +print() +'string' +]] + +TEST [[ +print +{ + x = 1, +} +]] + +TEST [[ local function x(a, b) return a, b end |