summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-08-13 00:30:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-08-13 00:30:40 +0800
commite8e5becffd87486347db7b3b191c1a1eff19c664 (patch)
tree6ae17dc33bda62ed97317a97ce5dc8f7aadbc01b /test
parent7cc86b43e1284bf173f46c3e3ba760551831ddf1 (diff)
downloadlua-language-server-e8e5becffd87486347db7b3b191c1a1eff19c664.zip
fix #1430
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 5f71dfa2..8c18bfb5 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -3761,3 +3761,15 @@ TEST 'integerA' [[
for <?i?> = 1, 10 do
end
]]
+
+TEST 'string' [[
+---@class A
+---@field x string
+
+---@class B : A
+local t = {}
+
+t.x = t.x
+
+print(t.<?x?>)
+]]