Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherited clause equality and show instance #17

Open
scottgw opened this issue Mar 2, 2012 · 0 comments
Open

Inherited clause equality and show instance #17

scottgw opened this issue Mar 2, 2012 · 0 comments
Assignees

Comments

@scottgw
Copy link
Owner

scottgw commented Mar 2, 2012

Missing pre/post-condition clauses default to being inherited, but empty ones take whatever indicator they were listed under (ensure or ensure-then). When pretty-printing empty clauses aren't printed at all, this means when re-parsing they become inherited even if they were initially tagged as 'ensure'.

The fix: change the equality for pre/post-condition clauses. Also update the shows instance omit this for empty clauses as it will help debugging.

@ghost ghost assigned scottgw Mar 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant