You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Alexey Afanasiev (JIRA)" <ji...@apache.org> on 2017/06/29 10:58:00 UTC
[jira] [Created] (GROOVY-8240) Compilation error in @CompileStatic
Alexey Afanasiev created GROOVY-8240:
----------------------------------------
Summary: Compilation error in @CompileStatic
Key: GROOVY-8240
URL: https://issues.apache.org/jira/browse/GROOVY-8240
Project: Groovy
Issue Type: Bug
Components: Static compilation
Affects Versions: 2.5.0-alpha-1
Reporter: Alexey Afanasiev
This should be compiled and executed nornally
{code:java}
class Bar {
void vararg(boolean flag = true, Class<?>... classes) {}
}
class Foo extends Bar{
def test() {
vararg(false, Foo)
}
}
new Foo().test()
{code}
But the result of compilation is
*[Static type checking] - Cannot call Foo#vararg(java.lang.Class <java.lang.Object>[]) with arguments [boolean, java.lang.Class <Foo>]*
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)