Temporary chan in send fails to typecheck

8f88034
Opened by Jeffrey Yasskin at 2010-07-20 00:54:37
io fn main() {
  let port[int] p = port();
  chan(p) <| 3;
}

fails with

test2.rs:3:6 - 3:14:E:Error: unresolved temp node #0

pulling the chan out into a local variable compiles successfully.

  1. This is a bug in resolve.ml actually, not the typechecker.

    Patrick Walton at 2010-07-19 17:53:04

  2. Include the statements on the LHS of a binop when desugaring. Closed by 0863114a051843e97c0ada81dbe09a4bffa4d348.

    Patrick Walton at 2010-07-20 00:54:37