-
-
Notifications
You must be signed in to change notification settings - Fork 386
Open
Labels
bugSomething isn't workingSomething isn't workingfeat/type checkRelated to the type checking featureRelated to the type checking feature
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
Actual Behaviour
Reproduction steps
local count = 0;
local time = 0;
local allcount = 0;
local alltime = 0;
local avg = 0;
---@type integer[]
local allstats = {}
for i, value in ipairs(allstats) do
count = count + 1;
time = time + 1;
allcount = allcount + 1;
alltime = alltime + 1;
end
if allcount > 0 then
avg = alltime / allcount;
end
Additional Notes
Previous fix: #2036
Log File
No response
C3pa
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfeat/type checkRelated to the type checking featureRelated to the type checking feature



