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
In a ternary expression with type checking: "local a = type(x) == "something" and dosomething(x) or somethingelse(x)", the type should be narrowed for both cases
Actual Behaviour
The type is only narrowed for the first case (boolean here), in the second case it is still boolean or string

Reproduction steps
Copy the code
Additional Notes
No response
Log File
No response
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
In a ternary expression with type checking: "local a = type(x) == "something" and dosomething(x) or somethingelse(x)", the type should be narrowed for both cases
Actual Behaviour
The type is only narrowed for the first case (boolean here), in the second case it is still boolean or string

Reproduction steps
Copy the code
Additional Notes
No response
Log File
No response