groovy

Use of an inner enum causes compilation to go into infinite loop