Closed
Description
Describe the bug
When a function returns value from another function call, the caller function return type reverts to "any".
To Reproduce
This simple code tells everything.
local function failedReturnTypeDeduction()
return string.sub("Hello", 2)
end
Then hover your cursor to failedReturnTypeDeduction
.
Expected behavior
failedReturnTypeDeduction
return type should be string
since string.sub
returns string
.
Environment (please complete the following information):
- OS: Windows
- Is WSL remote? No
- Client: VSCode
Provide logs
file_d%3A_Data_Development_love-11.3-win64_nlay.log