GROOVY-6708: Fix trait inheriting from other generic trait leading to compilation error