We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@Duck
(I haven't really looked at this carefully, but I wanted to put this here before I forget.)
The following example appeared to make the annotation processor stop responding (i.e. in Eclipse, sources were no longer being generated).
package types; public interface Tree { int numChildren(); // ... }
package ex; import org.paninij.lang.Capsule; import org.paninij.lang.Duck; import types.Tree; @Capsule class ServerCore { @Duck Tree getTree() { Tree t = null; // ... return t; } }
However, the issue goes away once the explicit @Duck annotation is removed.
As usual, it will probably be easier to debug this by doing so on the CLI rather than in the IDE.
The text was updated successfully, but these errors were encountered:
Once @Duck is removed, it looks like the generated source is marking getTree() as @Block. Hmmm...
getTree()
@Block
Sorry, something went wrong.
But then, if you make Tree be a class rather than an interface, the generated source marks getTree() as @Duck.
Tree
I bet that this is a problem with the procedure annotation inference code. Or maybe two problems... Here are my guesses:
Related? #139
No branches or pull requests
(I haven't really looked at this carefully, but I wanted to put this here before I forget.)
The following example appeared to make the annotation processor stop responding (i.e. in Eclipse, sources were no longer being generated).
However, the issue goes away once the explicit
@Duck
annotation is removed.As usual, it will probably be easier to debug this by doing so on the CLI rather than in the IDE.
The text was updated successfully, but these errors were encountered: