diff options
Diffstat (limited to 'test/type_inference/init.lua')
-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() +--]=] |