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
Consider the following:
some.dsld
contribute(enclosingMethod('foo')) { property name: 'bar', type: BigInteger }
Script.groovy
def foo(Integer bar) { bar // should inference as Integer, not BigInteger }
At present, DSLD contributions (from method and property) are overriding local parameter/variable declarations.
method
property
The text was updated successfully, but these errors were encountered:
This comes up in DSLD scripts as well. method and params are easily used as variable names.
params
import org.codehaus.groovy.ast.* contribute(methods: enclosingMethod()) { MethodNode mn = null for (MethodNode method : methods) { Parameter[] params = method.parameters // ... if (...) { mn = method // } } method(name:'other', params: params(mn)) }
Sorry, something went wrong.
Local declarations should take precedence over DSLD contributions
42ee1da
#605
Fix node filtering and state management in AbstractSimplifiedTypeLookup
abd1588
eric-milles
No branches or pull requests
Consider the following:
some.dsld
Script.groovy
At present, DSLD contributions (from
method
andproperty
) are overriding local parameter/variable declarations.The text was updated successfully, but these errors were encountered: