Soonad / Base.fm

Standard library for the Formality language
http://tiny.cc/8nvvgz
MIT License
18 stars 2 forks source link

Wrong implementation of Nat add #10

Closed LoPoHa closed 5 years ago

LoPoHa commented 5 years ago

The commit https://github.com/moonad/Formality-Base/commit/513744e6899cdc411f75d47c5573bcde18ff9c19 added a wrong result for the match on zero case for m. It should return n instead of zero.

The test the bottom only works because n <= m (in this case =)

(Sorry for not making a pull request, i can't test my changes atm.)

VictorTaelin commented 5 years ago

Great catch again! Thanks.