# What’s Scala’s stance on general dependent types?

**URL:** <https://users.scala-lang.org/t/what-s-scala-s-stance-on-general-dependent-types/10691>\
**Category:** Question\
**Created:** [April 11, 2025, 12:07am UTC](https://users.scala-lang.org/t/what-s-scala-s-stance-on-general-dependent-types/10691 "2025-04-11T00:07:24Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![GunpowderGuy](https://users.scala-lang.org/user_avatar/users.scala-lang.org/gunpowderguy/32/3270_2.png) [@GunpowderGuy](https://users.scala-lang.org/u/GunpowderGuy)\
**Post date:** [July 19, 2026, 9:19pm UTC](https://users.scala-lang.org/t/what-s-scala-s-stance-on-general-dependent-types/10691/11 "2026-07-19T21:19:08Z")

</div>

Recent paper on this topic

> **[First-Class Refinement Types for Scala](https://arxiv.org/abs/2605.08369)**
>
> Refinement types -- types qualified with logical predicates -- have proven effective for lightweight verification in languages like Liquid Haskell, F\*, and Dafny. However, in these systems refinements are either written in a separate specification...

First-Class Refinement Types for Scala

I gather this feature is implemented by forking the scala compiler. Not as a compiler plugin or as user side library

If anyone from the paper is here. I have a couple of questions.  
-The tecnique does not depend on totality checking to be sound ( like liquid haskell does )  
But could it support totality checking anyways? If so, how hard would be to add the feature  
-A custom solver is being used. But it is mentioned, is far less powerfull than one based on SMT. Have you considered using SMT.

---

_[View the full topic](https://users.scala-lang.org/t/what-s-scala-s-stance-on-general-dependent-types/10691)._
