-
-
Notifications
You must be signed in to change notification settings - Fork 403
Open
Description
How are you using the lua-language-server?
NeoVim
Which OS are you using?
Linux
What is the issue affecting?
Type Checking, Diagnostics/Syntax Checking
Expected Behaviour
The variables s and r are typed according to the @type annotation.
Actual Behaviour
In the following code snippet I cannot type the for loop variables s and r using the @type annotation:
---@type integer, string
for s, r in str:gmatch("[,]?%s*()([^,]+)%s*[,]?") do
...
endInstead I get a Can not infer type. error for r and s is shown as of type string
Reproduction steps
Additional Notes
I think #1367 enabled this, but only for primitive for loops.
Log File
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels