andresteingress / gcontracts

GContracts: Programming by Contract for Groovy
http://gcontracts.org
114 stars 11 forks source link

@Grab with GContracts fails in groovyConsole and @CompileStatic #39

Closed andresteingress closed 11 years ago

andresteingress commented 11 years ago
@Grab('org.gcontracts:gcontracts-core:1.2.10')
            import org.gcontracts.annotations.*

            @groovy.transform.CompileStatic
            class A {

                A() {}

                protected void invariant_A() {}
                protected java.util.Map $_gc_computeOldVariables() { return [:] }
            }

            new A()

compilation fails the first time this code is compiled by groovyConsole