summaryrefslogtreecommitdiff
path: root/server/test/type_inference
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/type_inference')
-rw-r--r--server/test/type_inference/init.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/server/test/type_inference/init.lua b/server/test/type_inference/init.lua
index 3686451f..c906fdd4 100644
--- a/server/test/type_inference/init.lua
+++ b/server/test/type_inference/init.lua
@@ -108,3 +108,22 @@ TEST 'number' [[
TEST 'table' [[
<?table?>()
]]
+
+TEST 'string' [[
+<?x?> = _VERSION
+]]
+
+TEST 'function' [[
+<?x?> = _VERSION.sub
+]]
+
+TEST 'table' [[
+<?x?> = setmetatable({})
+]]
+
+TEST 'number' [[
+local function x()
+ return 1
+end
+<?y?> = x()
+]]