|
Groovy example source code file (Groovy4861Bug.groovy)
The Groovy Groovy4861Bug.groovy source code
package groovy.bugs
class Groovy4861Bug extends GroovyTestCase {
void testCallSitesUsageInNestedInterface() {
assert Foo4861.A.j == 3
assert Foo4861.A.j2 == 7
assert new Foo4861()
}
}
private class Foo4861 {
static interface A {
static Integer j = 3
static Integer j2 = j + 4
}
static interface B{}
static class Inner<X> {}
static Inner<A> method() { null }
}
Other Groovy examples (source code examples)Here is a short list of links related to this Groovy Groovy4861Bug.groovy source code file: |
Other websites by Alvin Alexander:
Life/living in Alaska (OneMansAlaska.com)
How I Sold My Business (HowISoldMyBusiness.com)
Copyright 1998-2011 Alvin Alexander, devdaily.com
All Rights Reserved.