You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Michał Zegan (JIRA)" <ji...@apache.org> on 2016/11/04 11:49:58 UTC

[jira] [Created] (GROOVY-7990) inner classes not found in scripts

Michał Zegan created GROOVY-7990:
------------------------------------

             Summary: inner classes not found in scripts
                 Key: GROOVY-7990
                 URL: https://issues.apache.org/jira/browse/GROOVY-7990
             Project: Groovy
          Issue Type: Bug
          Components: Compiler
    Affects Versions: 2.4.0
            Reporter: Michał Zegan


Hello, when I try to create two files in the same directory:
file B.groovy:
class B {
static class C {
}
}

and A.groovy:
new B.C()

Then trying to run A.groovy with the groovy command gives a compilation error:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
/home/webczat/A.groovy: 1: unexpected token: . @ line 1, column 4.
   new.B.C()
      ^
1 error



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)