summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-29 16:02:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-29 16:02:15 +0800
commit46910e464bfab9992895898b4c1795e494796e39 (patch)
tree4a8580f9fa9d983b3a6f932a24011668d4938a67 /test
parent72fccb749b959881011e0ab0830c11917bfc3c55 (diff)
downloadlua-language-server-46910e464bfab9992895898b4c1795e494796e39.zip
resolve #1248 supports spaces before `--[[@as]]`
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index e2fae2bb..a6791e22 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -3230,3 +3230,7 @@ end
local <?x?> = f()
]=]
+
+TEST 'number' [=[
+local <?x?> = X --[[@as number]]
+]=]