Open
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Type Checking
Expected Behaviour
No warning
Actual Behaviour
The following warning is appearing:
Cannot assign string|osdate
to parameter osdateparam?
.
string
cannot matchosdateparam?
- Type
string
cannot matchnil
- Type
string
cannot matchosdateparam
Reproduction steps
- Enter the following code
local tDate = os.date("*t", os.time())
-- tDate is a table, e.g. {year=2024, month=1, day=10, hour=13, min=2, sec=24, yday=10, wday=4, isdst=false}
local newTime = os.time(tDate)
- Linter warning appears in the problems tab
Additional Notes
No response
Log File
No response