Closed
Description
To remove one venue for undecidability, the SLS 5.1.5 mandates a restriction (implemented by scalac), which appears not implemented yet in Dotty.
Test tests/untried/neg/t8146-non-finitary.scala
and tests/untried/neg/t8146-non-finitary-2.scala
trigger a "Recursion limit exceeded" exception, instead of triggering the SLS-mandated error.
The Scalac implementation (which I haven't studied) starts at https://github.com/scala/scala/blob/9df13fd826bdf1c83cc701d1fa16e9ec729ab782/src/reflect/scala/reflect/internal/Types.scala#L1725-L1728.