GROOVY-6691: Cannot extend trait with generic parameter