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
#[test]fntest_base_generic(){letmut ws = crate::VirtualWorkspace::new();
ws.def(r#" ---@alias Arrayable<T> T | {a: T} ---@class Suite ---@generic T ---@param value Arrayable<T> ---@return T[] function toArray(value) end "#,);
ws.def(r#" ---@type Arrayable<Suite> local suite arraySuites = toArray(suite) "#,);let a = ws.expr_ty("arraySuites");let expected = ws.ty("Suite[]");assert_eq!(a, expected);}
Activity
fix generic EmmyLuaLs#880
fix generic EmmyLuaLs#880
fix generic EmmyLuaLs#880