cheddar-lang / Cheddar

🧀 Cheddar, the language that works for you
cheddar.vihan.org
Apache License 2.0
28 stars 9 forks source link

0 == 0 -> false #81

Closed quartata closed 8 years ago

quartata commented 8 years ago

Version: v1.0.0-beta.50

Problem

== does not work properly for 0 and 0.

cheddar> 0 == 0
false
cheddar> 1 == 1
true

Desired Behavior

Comparing two literals or lvalues that are both 0 should yield true.

How to Reproduce

  1. Simply compare two zeros.
vihanb commented 8 years ago

Fixed in 9d2df293ed6d502bccc57da194d752eec22f157c

ConorOBrien-Foxx commented 8 years ago

uh oh. is it borked again?

vihanb commented 8 years ago

@ConorOBrien-Foxx it was never fixed but I know exactly what the problem is, I just need to fix it