diff options
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r-- | test/type_inference/init.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 9ead2861..ca3027fe 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1482,3 +1482,10 @@ function mt:f() print(<?self?>) end ]] + +TEST 'string?' [[ +---@return string? +local function f() end + +local <?x?> = f() +]] |