diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-29 15:27:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-29 15:27:12 +0800 |
commit | c18f88dded6e14a0c931467dc856e5a1b2170076 (patch) | |
tree | ccc4e20d772b7f56021e1787f8e631a958ff3c2d /test/type_inference | |
parent | 0c95dbcc67e096e2da61736e9fbea44c3e82e953 (diff) | |
download | lua-language-server-c18f88dded6e14a0c931467dc856e5a1b2170076.zip |
cleanup
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index a05749b8..a075ef9a 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -3218,3 +3218,15 @@ if true then 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() +--]=] |