cliffclick / aa

Cliff Click Language Hacking
Apache License 2.0
272 stars 21 forks source link

0+0 crashes #16

Closed cliffclick closed 2 years ago

cliffclick commented 2 years ago

Has trouble picking between the 3 current "+" overloads. In all cases, 0+0 === 0.

    test("0+0+3", TypeInt.con(3));

    ==>
    java.lang.ClassCastException: com.cliffc.aa.type.Type cannot be cast to com.cliffc.aa.type.TypeObj
    at com.cliffc.aa.node.MrgProjNode.value(MrgProjNode.java:81)
    at com.cliffc.aa.node.Node.combo_forwards(Node.java:550)
    at com.cliffc.aa.Combo.opto(Combo.java:120)