41 In that regard, it should be borne in mind that the Court has held that, where it is established that, when they were employed, those fixed-term workers carried out the same duties as contract workers employed by the same employer for an indefinite period or held the same post as them, it is necessary, in principle, to regard the situations of those two categories of worker as being comparable (see, to that effect, the judgments of 5 June 2018, Grupo Norte Facility, C‐574/16, EU:C:2018:390, paragraphs 50 and 51; of 5 June 2018, Montero Mateos, C‐677/16, EU:C:2018:393, paragraphs 53 and 54, of 21 November 2018, de Diego Porras, C‐619/17, EU:C:2018:936, paragraphs 64 and 65, and the order of 12 June 2019, Aragón Carrasco and Others, C‐367/18, not published, EU:C:2019:487, paragraph 36).
41 I detta avseende ska det erinras om att domstolen har slagit fast att om det är utrett att visstidsanställda utförde samma arbetsuppgifter som de arbetstagare som hade ingått ett avtal om tillsvidareanställning med samma arbetsgivare eller innehade samma tjänst som dessa, ska situationen för dessa båda kategorier av arbetstagare i princip anses vara jämförbar (se, för ett liknande resonemang, dom av den 5 juni 2018, Grupo Norte Facility, C‐574/16, EU:C:2018:390, punkterna 50 och 51, dom av den 5 juni 2018, Montero Mateos, C‐677/16, EU:C:2018:393, punkterna 53 och 54, dom av den 21 november 2018, de Diego Porras, C‐619/17, EU:C:2018:936, punkterna 64 och 65, och beslut av den 12 juni 2019, Aragón Carrasco m.fl., C‐367/18, ej publicerat, EU:C:2019:487, punkt 36).EuroParl2021 EuroParl2021