The invention relates to novel heterocyclic compounds of the formula (I), in which all of the variables are as defined in the specification, in free form or in pharmaceutically acceptable salt form, to their preparation, to their medical use and to medicaments comprising them.