-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
#[test]
fn test_array_alias() {
let mut ws = VirtualWorkspace::new();
ws.def(
r#"
---@alias Tester fun(customTesters: Tester[]): boolean?
---@generic V
---@param t V[]
---@return fun(tbl: any):int, V
function ipairs(t) end
"#,
);
assert!(ws.check_code_for(
DiagnosticCode::ParamTypeMismatch,
r#"
---@param newTesters Tester[]
local function addMatchers(newTesters)
for _, tester in ipairs(newTesters) do
end
end
"#
));
}Metadata
Metadata
Assignees
Labels
No labels