config.dsld
contribute(enclosingCall(name('withConfig') & hasArgument('configuration')) & inClosure() & isThisType()) {
method(name:'imports', type:void, params:[block:Closure])
}
config.groovy
withConfig(configuration) {
imports {
...
}
}
The method call expression imports infers as unknown because the hasArgument('configuration') pointcut does not match on the passed variable expression. Note, hasArgument(name('configuration')) does match, so this change would close a gap (i.e. offer a shorthand notation).
config.dsld
config.groovy
withConfig(configuration) { imports { ... } }The method call expression
importsinfers as unknown because thehasArgument('configuration')pointcut does not match on the passed variable expression. Note,hasArgument(name('configuration'))does match, so this change would close a gap (i.e. offer a shorthand notation).