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

Make this lib work in non-macro #13

Open
kevinresol opened this issue May 18, 2017 · 0 comments
Open

Make this lib work in non-macro #13

kevinresol opened this issue May 18, 2017 · 0 comments

Comments

@kevinresol
Copy link
Member

kevinresol commented May 18, 2017

First, I have to wrap using tink.MacroApi; within #if macro, if my module has mixed macro and non-macro code. Otherwise it will complain something like Class<Context> has no field makeExpr.

Second, I have written a few extern generators which use TypeDefinition, Expr, ComplexTypes in a non-macro context. It would be very helpful if tink_macro can be used in such case. For example 'some.path.Class'.asTypePath(). Also, seems that var e = macro someExpr; doesn't work in non-macro because it will say something like Class<Context> has no field makeExpr again. Maybe tink_macro can polyfill that, or it should be the compiler's responsibility to support that in non-macro.

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