You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling a function from the string library or a method from a string which returns string, the variable seems to infer the type, but the type infered doens't work.
For example:
I also tested the io library and file type and they do work, custom classes works too.
Adding ---@type string to variable seems to work better but after calling a function on the infered types it stops working:
I also tried adding ---@type string* and it works just like the string literal and the library.
Environment:
OS: Windows
Client: VSCode
I'm using the latest version of lua language server (1.15.1).
The text was updated successfully, but these errors were encountered:
When calling a function from the string library or a method from a string which returns string, the variable seems to infer the type, but the type infered doens't work.
For example:
I also tested the io library and file type and they do work, custom classes works too.
Adding
---@type string
to variable seems to work better but after calling a function on the infered types it stops working:I also tried adding
---@type string*
and it works just like the string literal and the library.Environment:
OS: Windows
Client: VSCode
I'm using the latest version of lua language server (1.15.1).
The text was updated successfully, but these errors were encountered: