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

Support non-primitive parameters #14

Closed
domn1995 opened this issue Jun 23, 2022 · 0 comments · Fixed by #15
Closed

Support non-primitive parameters #14

domn1995 opened this issue Jun 23, 2022 · 0 comments · Fixed by #15

Comments

@domn1995
Copy link
Owner

domn1995 commented Jun 23, 2022

As a developer, I want my union definitions to support non-primitive parameters, so that I can build more complex and useful unions.

I should be able to do something like this:

using System;

[Union]
interface IResult
{
    void Created(Guid id);
    void Failure(Exception error);
}

This currently fails to compile because the imports are not part of the generated code.

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

Successfully merging a pull request may close this issue.

1 participant