summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-29 15:32:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-29 15:32:51 +0800
commit72fccb749b959881011e0ab0830c11917bfc3c55 (patch)
tree624e03d817d0ac87057185f663368682146f1a7d /test
parentc18f88dded6e14a0c931467dc856e5a1b2170076 (diff)
downloadlua-language-server-72fccb749b959881011e0ab0830c11917bfc3c55.zip
resolve #1244 `call.return` check `as`
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index a075ef9a..e2fae2bb 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -3219,14 +3219,14 @@ end
local <?x?> = n or 0
]]
---TEST 'number' [=[
---local <?x?> = F()--[[@as number]]
---]=]
---
---TEST 'number' [=[
---local function f()
--- return F()--[[@as number]]
---end
---
---local <?x?> = f()
---]=]
+TEST 'number' [=[
+local <?x?> = F()--[[@as number]]
+]=]
+
+TEST 'number' [=[
+local function f()
+ return F()--[[@as number]]
+end
+
+local <?x?> = f()
+]=]