You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 likeClass<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 thatvar e = macro someExpr;
doesn't work in non-macro because it will say something likeClass<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.The text was updated successfully, but these errors were encountered: