[
https://issues.apache.org/jira/browse/GROOVY-12294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18107601#comment-18107601
]
ASF GitHub Bot commented on GROOVY-12294:
-----------------------------------------
paulk-asert opened a new pull request, #2830:
URL: https://github.com/apache/groovy/pull/2830
…oads
The category error was keyed on exactly two arguments (category + closure),
so the varargs form use(A, B) { ... } fell through to generic no-such-method/
property errors. Detect any use() call resolving to the DGM extension methods
with a trailing closure. Also extend the error message to point at extension
modules as the type-checking-compatible alternative, and document the
limitation in the categories section of the metaprogramming guide.
> STC: emit consistent category error for all use() overloads
> -----------------------------------------------------------
>
> Key: GROOVY-12294
> URL: https://issues.apache.org/jira/browse/GROOVY-12294
> Project: Groovy
> Issue Type: Improvement
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)