summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-03-27 16:46:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-03-27 16:46:59 +0800
commit4399ca74c753c8822a62a2174ab2f47cefe98dca (patch)
tree7256a41378b56426b456a7800271c8591733ccb4 /test
parent114695a4db97d9a1fe88a29fd2905f4ccb06ce45 (diff)
downloadlua-language-server-4399ca74c753c8822a62a2174ab2f47cefe98dca.zip
check operator `/`, `^` and `//`
fix #2036
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index bc70fbf4..13585790 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -4254,3 +4254,10 @@ local fooOrBar
local <?b?> = foo * fooOrBar
]]
+
+TEST 'number' [[
+local a = 4;
+local b = 2;
+
+local <?c?> = a / b;
+]]