summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-03-13 17:50:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-03-13 17:50:49 +0800
commit671d9526cbfa83c01e74aa3405f1d32b647822d7 (patch)
tree09721d61fb0f297a574b0fbda668d245764dab14 /test/type_inference
parenta2cc1076556bde7ed91036926c5007e4ac66b0d2 (diff)
downloadlua-language-server-671d9526cbfa83c01e74aa3405f1d32b647822d7.zip
infer unknown operation as unknown
#1996
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 597fb761..66fa8768 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -178,7 +178,7 @@ TEST 'boolean' [[
<?x?> = a == b
]]
-TEST 'integer' [[
+TEST 'unknown' [[
<?x?> = a << b
]]
@@ -186,7 +186,7 @@ TEST 'integer' [[
<?x?> = 1 << 2
]]
-TEST 'string' [[
+TEST 'unknown' [[
<?x?> = a .. b
]]
@@ -202,7 +202,7 @@ TEST 'string' [[
<?x?> = 'a' .. 1.0
]]
-TEST 'number' [[
+TEST 'unknown' [[
<?x?> = a + b
]]
@@ -227,11 +227,11 @@ local a
<?x?> = - a
]]
-TEST 'integer' [[
+TEST 'unknown' [[
<?x?> = 1 + X
]]
-TEST 'number' [[
+TEST 'unknown' [[
<?x?> = 1.0 + X
]]
@@ -2416,7 +2416,7 @@ local <?z?> = f()
TEST 'integer|table' [[
local function returnI()
- return a + 1
+ return 1
end
local function f()