summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoruhziel <uhziel@gmail.com>2020-12-09 19:29:45 +0800
committeruhziel <uhziel@gmail.com>2020-12-09 19:29:45 +0800
commitee244313a7adaedf40fb83d79595f42b5c054a9c (patch)
treeaeebeda8629ecd67f2ac840f9a3ed08f53d25c49 /test
parentcdb0368c12640c3fb6faa00eabeff7572f677061 (diff)
downloadlua-language-server-ee244313a7adaedf40fb83d79595f42b5c054a9c.zip
让诊断 undefined-field 尽量精准
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index 0e932ede..9c934bd5 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -842,4 +842,7 @@ print(<!v.field3!> + 1)
print(v:method1())
print(v.method2())
print(<!v:method3!>())
+
+local v1 = {}
+print(v1.abc)
]]