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
fn rv(ok: bool) -> Result[Vec[i32], str]:
if not ok: return Err("no" ++ "pe")
Ok(Vec.new())
fn main:
let t = rv(false).unwrap_or_else((_) => Vec.new())
print(t.len())
Actual (installed v0.15.2.1 and origin/main 8c859a7): BUG: closure result lacks LLVM type: node=7633 [src/CodegenDispatch.w:17259 Codegen.gen_closure], rc=134. Same for Option (() => Vec.new()). An owned local default ((_) => d) and a str literal ((_) => "") compile.
Expected: 0. The closure result type is forced by the join (Vec[i32]), so Vec.new() needs no annotation.
Workaround: none used; the #1363 matrix excludes the unwrap_or_else × Vec × literal-default cells.
Activity
Sema: a lazy fallback returning a bare generic (`(_) => Vec.new()`) r…
Sema: a join arm typed as a bare generic (`Vec.new()`) records the jo…
Sema: a lazy fallback returning a bare generic (`(_) => Vec.new()`) r…
Sema: a join arm typed as a bare generic (`Vec.new()`) records the jo…
Sema: a join arm typed as a bare generic (`Vec.new()`) records the jo…
Sema: a join arm typed as a bare generic (`Vec.new()`) records the jo…
Sema: a join arm typed as a bare generic (`Vec.new()`) records the jo…
Sema: a lazy fallback returning a bare generic (`(_) => Vec.new()`) r…