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
Did this break recently? I'm on luals 3.9.3 and I get nil check warnings:
file.lua variable 'a' is never set
file.lua Empty block.
file.lua Need check nil.
file.lua empty if branch
file.lua Empty block.
file.lua Need check nil.
file.lua empty if branch
5c3086acd08765f9122ed5b7f806e2b2bf3737e3 is the first bad commit
commit 5c3086acd08765f9122ed5b7f806e2b2bf3737e3 (HEAD)
Author: Lewis Russell <[email protected]>
Date: Sun Sep 22 17:19:12 2024 +0100
feat: type narrow types with literal fields
changelog.md | 1 +
script/vm/tracer.lua | 59 ++++++++++++++++++++++++++++++++++++++++++
test/type_inference/common.lua | 50 +++++++++++++++++++++++++++++++++++
3 files changed, 110 insertions(+)
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?
Diagnostics/Syntax Checking
Expected Behaviour
Diagnostics nil check does not depend on the field parameter value
Actual Behaviour
The string value "string" suppresses the triggering of diagnostics, because of type
string
of field b.Reproduction steps
a.b == "string"
when a should trigger "Need check nil"Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered: