cucapra/dahlia

bools are incomparable

Closed this issue · 2 comments

The compiler rejects this program:

let x = true;
let y = (false == x);

with this error:

[Type error] [3.16] bool and bool are incomparable. Cannot create a join for construct ==.
let y = (false == x);
               ^

Facepalm

joinOf (in subtyping.scala) needs to have a case for when the types are equal.

@sgpthomas want to take a look at this?