Details
Description
The script:
#! /usr/bin/env groovy
def factorial ( x )
{ 1 }class Factorial_Test extends GroovyTestCase {
void test_zero ( )
}
results in the error message:
Caught: BUG! exception in phase 'conversion' in source unit 'Tests/Factorial_Test.groovy' Error: duplicate class declaration for name: Factorial_Test and class: org.codehaus.groovy.ast.ClassNode@cec0c5[name: Factorial_Test]
I understand why the message (declared class name the same as the file constructed class name) but I am not sure this is obvious to the casual Groovy user.