Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Agda 2.5.1 can't parse _+_ #18

Open
langston-barrett opened this issue Oct 25, 2016 · 0 comments
Open

Agda 2.5.1 can't parse _+_ #18

langston-barrett opened this issue Oct 25, 2016 · 0 comments

Comments

@langston-barrett
Copy link

When checking the definition of _+_, I get the following error:

/home/siddharthist/code/agda/LearnYouAn.agda:12,1-13
Could not parse the left-hand side (suc n) + n'
Operators used in the grammar:
  + (infix operator, level 20) [_+_ (/home/siddharthist/code/agda/LearnYouAn.agda:9,1-4)]
(the treatment of operators was changed in Agda 2.5.1, so code that
used to parse may have to be changed)
when scope checking the left-hand side (suc n) + n' in the
definition of _+_

Here's the code:

_+_ : ℕ
zero + zero = zero
zero + n = n
(suc n) + n' = suc (n + n')
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant