# Extending typeclass defined parametrically from typeclass defined using Self type member

**URL:** <https://contributors.scala-lang.org/t/extending-typeclass-defined-parametrically-from-typeclass-defined-using-self-type-member/7282>\
**Category:** Scala Improvement Process\
**Created:** [November 3, 2025, 9:07am UTC](https://contributors.scala-lang.org/t/extending-typeclass-defined-parametrically-from-typeclass-defined-using-self-type-member/7282 "2025-11-03T09:07:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erik1](https://contributors.scala-lang.org/letter_avatar_proxy/v4/letter/e/8e8cbc/32.png) [@erik1](https://contributors.scala-lang.org/u/erik1)\
**Post date:** [November 3, 2025, 9:07am UTC](https://contributors.scala-lang.org/t/extending-typeclass-defined-parametrically-from-typeclass-defined-using-self-type-member/7282/1 "2025-11-03T09:07:58Z")

</div>

I’m not sure if this question belongs in this forum or in [users.scal-lang.org](http://users.scal-lang.org), so I apologise in advance if this is posted in the wrong place. My question regards the new typeclass syntax introduced with the `experimental.modularity` feature set.

I want to define a typeclass `Lattice { type Self }`, which ought to extend the already existing `PartialOrdering[T]` typeclass. I’m really enjoying the new `Self` member type syntax, and am using it throughout my project. Is there anyway I can define `Lattice` using the new syntax, and still extend `PartialOrdering[T]`? Something akin to `trait Lattice extends PartialOrdering[this.Self]`?

---

<div class="post-metadata">

**Author:** ![spamegg1](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/spamegg1/32/2808_2.png) [@spamegg1](https://contributors.scala-lang.org/u/spamegg1)\
**Post date:** [November 3, 2025, 3:33pm UTC](https://contributors.scala-lang.org/t/extending-typeclass-defined-parametrically-from-typeclass-defined-using-self-type-member/7282/2 "2025-11-03T15:33:41Z")

</div>

Welcome, it probably belongs in the Users forum. Worry not, the people who can answer it (the compiler people + expert users) usually check both forums, though Users forum could get you more eyeballs on your question.

---

<div class="post-metadata">

**Author:** ![erik1](https://contributors.scala-lang.org/letter_avatar_proxy/v4/letter/e/8e8cbc/32.png) [@erik1](https://contributors.scala-lang.org/u/erik1)\
**Post date:** [November 6, 2025, 8:07am UTC](https://contributors.scala-lang.org/t/extending-typeclass-defined-parametrically-from-typeclass-defined-using-self-type-member/7282/3 "2025-11-06T08:07:39Z")

</div>

Thank you! I will try my luck there
