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

Bad Error Message for Use Before Definition #26

Open
stamourv opened this issue Oct 30, 2020 · 0 comments
Open

Bad Error Message for Use Before Definition #26

stamourv opened this issue Oct 30, 2020 · 0 comments

Comments

@stamourv
Copy link
Collaborator

This program:

#lang dssl2

def fun():
    helper()
    def helper():
        return 0
fun()

produces the error:

real-definition: undefined;
 cannot use before initialization

without a useful source location.

real-definition looks like some internal name leaking, but the name from the program would be better.

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