Putting @main in a mixin #144
Unanswered
kincsescsaba
asked this question in
Q&A
Replies: 1 comment 4 replies
-
What version of MainArgs are you using? This should have been fixed in 0.7.1 I think #142 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
I'm not sure if this is an issue or more like a feature request, but when I try to place the
@main
annotation ofmainargs
in a trait, that is mixed into the class that contains the main method, I get aNo @main methods declared
error.I tried referencing the self type from
ParserForMethods
but that did not fix the issue.Here's how the approach looks like:
Any ideas on how this behavior could be implemented?
Beta Was this translation helpful? Give feedback.
All reactions