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

Add helper to allow using ComplexType with type parameter as value #31

Open
kevinresol opened this issue Aug 12, 2020 · 0 comments
Open

Comments

@kevinresol
Copy link
Member

kevinresol commented Aug 12, 2020

Basically this piece of code: https://github.com/haxetink/tink_json/blob/09c708c6cebfa47fd9165d9b6a380e077ff3f320/src/tink/json/macros/GenWriter.hx#L368-L379

For example for tink.Annex we have .get(TheType), but .get(TheType<Int>) doesn't work, but we can typedef TheIntType = TheType<Int>; then .get(TheIntType). This will be useful if TheType is generically built and produces distinct types at runtime.

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