You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2022/11/10 14:21:00 UTC
[jira] [Created] (GROOVY-10820) SC: static choice of Class vs Object extension for Type object expression
Eric Milles created GROOVY-10820:
------------------------------------
Summary: SC: static choice of Class vs Object extension for Type object expression
Key: GROOVY-10820
URL: https://issues.apache.org/jira/browse/GROOVY-10820
Project: Groovy
Issue Type: Bug
Reporter: Eric Milles
Assignee: Eric Milles
Consider the following:
{code:groovy}
@groovy.transform.CompileStatic
void test() {
String.getMetaClass() // should refer to getMetaClass(Class)
String.metaClass {} // should refer to metaClass(Class,Closure)
String.isCase(null) // should refer to isCase(Class)
}
{code}
Static compiler is writing direct invoke of Object variants of examples above.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)