-
Notifications
You must be signed in to change notification settings - Fork 256
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
Undeclared top-level issue #2550
Labels
area: error-reporting
Clarity of the error reporting
Comments
I think top-level here means "unqualified" (so it's the use of |
davidcok
pushed a commit
to davidcok/dafny
that referenced
this issue
Feb 9, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code
produces the error
In this particular case, the error message should not mention "undeclared top-level type" because it assumes Dafny looked into the top-level types and could not see Foo, but it's a top-level type.
Here are the alternatives on how we could fix it:
(also, children can't import the definitions of their parents)
The text was updated successfully, but these errors were encountered: