summaryrefslogtreecommitdiff
path: root/test/definition/field.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-02-23 17:55:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-02-23 17:55:44 +0800
commitf8e2955268708728a1f83743d0b2000d2e089539 (patch)
tree102ede06a30d1629025f1c45096aff030e05c8ee /test/definition/field.lua
parentc1ccd90beef8b0a79a8e9c47547dda3dd865e14d (diff)
downloadlua-language-server-f8e2955268708728a1f83743d0b2000d2e089539.zip
cleanup
Diffstat (limited to 'test/definition/field.lua')
-rw-r--r--test/definition/field.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/definition/field.lua b/test/definition/field.lua
new file mode 100644
index 00000000..5b5b67f9
--- /dev/null
+++ b/test/definition/field.lua
@@ -0,0 +1,23 @@
+TEST [[
+X.<!y!> = 1
+
+local t = X
+
+print(t.<?y?>)
+]]
+
+TEST [[
+X.x.<!y!> = 1
+
+local t = X.x
+
+print(t.<?y?>)
+]]
+
+TEST [[
+X.x.<!y!> = 1
+
+local t = X
+
+print(t.x.<?y?>)
+]]