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_table_narrow(){letmut ws = VirtualWorkspace::new();
ws.def(r#" ---@type table<int, table<int,table>> local archiveCache = {} local playerCache = archiveCache[0] if not playerCache then playerCache = {} end A = playerCache -- 此时是 table | table<integer,table>, 但他应该为 table<integer,table> "#,);let a = ws.expr_ty("A");assert_eq!(ws.humanize_type(a),"table<integer,table>");}
Activity
fix(code-analysis): keep table slot type for empty fallback assignment
fix(code-analysis): keep table slot type for empty fallback assignment