-
-
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
macros.getImpl
still return incorrect AST for Sym "XXX:ObjectType"
#16110
Labels
Comments
Merged
Thank you for the quick response and fix. |
Merged
ringabout
pushed a commit
to ringabout/Nim
that referenced
this issue
Nov 25, 2020
ringabout
pushed a commit
to ringabout/Nim
that referenced
this issue
Nov 25, 2020
ringabout
pushed a commit
to ringabout/Nim
that referenced
this issue
Nov 25, 2020
ringabout
pushed a commit
to ringabout/Nim
that referenced
this issue
Nov 25, 2020
ringabout
pushed a commit
to ringabout/Nim
that referenced
this issue
Nov 25, 2020
mildred
pushed a commit
to mildred/Nim
that referenced
this issue
Jan 11, 2021
mildred
pushed a commit
to mildred/Nim
that referenced
this issue
Jan 11, 2021
mildred
pushed a commit
to mildred/Nim
that referenced
this issue
Jan 11, 2021
mildred
pushed a commit
to mildred/Nim
that referenced
this issue
Jan 11, 2021
mildred
pushed a commit
to mildred/Nim
that referenced
this issue
Jan 11, 2021
mildred
pushed a commit
to mildred/Nim
that referenced
this issue
Jan 11, 2021
* fix nim-lang#16110 * refs nim-lang#16110 * fix comment * Trigger build * use shallowCopy for efficiency
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
* fix nim-lang#16110 * refs nim-lang#16110 * fix comment * Trigger build * use shallowCopy for efficiency
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, I would like to thank you for all improvements since nim-lang/RFCs#176.
Instead of returning
nilLit
,macros.getImpl
now gives us some AST. But unfortunately, the AST is still incorrect.We will use the same macro code above for all examples below.
I'll start with ordinary object:
The result is:
Now, we will use ref object:
output still ok:
Last, we will try it with ref/ptr shortcut:
the result is still
PtrTy
, notObjectTy
, and the Sym is incorrect:Expected output
getImpl
should return the impl of Sym "TirePtr:ObjectType" and not of Sym "TirePtr".Please fix this inconsistency, it will help us a lot writing sane macro based code.
The text was updated successfully, but these errors were encountered: