-
-
Notifications
You must be signed in to change notification settings - Fork 384
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
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
---@alias Test
---| "Test1"
---| "Test2"
---| "Test3"
---@class Car
---@field a number
---@field b number
local Car = {};
---@return boolean
function Car:c() end
---@type table<Test, fun(car: Car): boolean>
local CONDITIONS =
{
["Test1"] = function(car) return car:c() end,
["Test2"] = function(car) return car:c() end,
["Test3"] = function(car) return car:c() end,
}
local conditions = CONDITIONS["Test1"];
Additional Notes
No response
Log File
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request