summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-17 17:44:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-17 17:44:51 +0800
commit1abbbdc89bb5511aead3ac8155ae68265b90a6e9 (patch)
tree37458759e015edcf0e9650df0fcb1155978c44ed /test
parent09f1cf4e0380437087536ec0d79eddae44a0e569 (diff)
downloadlua-language-server-1abbbdc89bb5511aead3ac8155ae68265b90a6e9.zip
some fix
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 09f51b8e..aa424d9c 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -2674,3 +2674,16 @@ local t
local <?x?> = t.x
]]
+
+TEST 'integer' [[
+local function f()
+ return GG
+end
+
+local t
+
+t.x = 1
+t.x = f()
+
+print(t.<?x?>)
+]]