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

Import errors #1143

Open
fare opened this issue Mar 3, 2024 · 0 comments
Open

Import errors #1143

fare opened this issue Mar 3, 2024 · 0 comments
Assignees

Comments

@fare
Copy link
Collaborator

fare commented Mar 3, 2024

On either v0.18.1 or master, from a file with these contents:

(import
  (only-in :std/actor-v18/message message::t)
  (only-in :std/net/websocket message::t))

(displayln (struct->list message::t))

In the example above, the actor-v18 message gets imported. If the statements are reordered, the first one is imported. If the import is broken in two statements, the second one is imported.

Expected: a sensible error message about a conflict.

Also, the error message from an empty import statement is not very useful ("Unexpected import")—though the error message is only from gxi and not from gxc(!) that allows the empty import.

@fare fare assigned vyzo Mar 3, 2024
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

2 participants