summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 4d135004..3e4a910c 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -2618,3 +2618,12 @@ if type(x) == 'function' then
print(<?x?>)
end
]]
+
+TEST 'integer' [[
+local x
+local tp = type(x)
+
+if tp == 'integer' then
+ print(<?x?>)
+end
+]]