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

Wrong error message on ambiguous variable names #184

Open
NightRa opened this issue Apr 11, 2017 · 0 comments
Open

Wrong error message on ambiguous variable names #184

NightRa opened this issue Apr 11, 2017 · 0 comments

Comments

@NightRa
Copy link

NightRa commented Apr 11, 2017

findInNameSpaces: findInNameSpaces

  • Throws "Variable not in scope." when it should be "multiple matching variables in scope.", because of the use of catchesM.

Reproduction:
> hermit examples/Mean/mean.hs

set-pp-type Omit
rhs-of 'mean
lam-body
{ application-of 'sum ; let-intro 's }
{ application-of 'length; let-intro 'l }
innermost let-float
reorder-lets ['s, 'l]
let-tuple 'sl
case-expr ; abstract 'xs
app-fun ; let-intro 'sumlength
let-bind ; nonrec-to-rec
binding-of 'sumlength ; remember sumlen
def-rhs ; lam-body ; case-split-inline 'xs
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