Terminal rule 'A' cannot be used as a supertype