summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-16 15:10:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-16 15:10:38 +0800
commit073afa589be41900e4881d755ba663d8718fffec (patch)
tree484d2c2b158cc8c77771e4c52674cc89beace0b4 /test
parent182b2b7ed8201f4528b177d66ce661dc91066365 (diff)
downloadlua-language-server-073afa589be41900e4881d755ba663d8718fffec.zip
fix #1213 change back to enum
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 8201f9d4..32a35fbd 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -2637,3 +2637,16 @@ else
print(<?x?>)
end
]]
+
+TEST 'B' [[
+---@class A
+---@class B
+
+---@type A
+local x
+
+---@type B
+x = call(x)
+
+print(<?x?>)
+]]