-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Typed macro removes std /
in imports
#19904
Comments
weird, I just tried , if you change the module to other like |
It's because some modules in the stdlib requires the import jsonutils
# Error: cannot open file: jsonutils While this one works: import cstrutils |
The compiler expects typed import AST to contain just sym nodes, creating them here. Maybe we could keep the last node as a sym node and the compiler always recurses to find it, or it could become something like |
When passing an import using the syntax:
to a typed macro the first part of the import is removed resulting in this:
which gives an error like:
Example
Current Output
Expected Output
Possible Solution
Additional Information
Have tried it on version 1.6.6, 1.6.0, 1.4.8, 1.4.0, and the latest devel. All give the same error.
The text was updated successfully, but these errors were encountered: