Skip to content

Dotty does not yet implement the Kennedy and Pierce restriction  #4805

Closed
@Blaisorblade

Description

@Blaisorblade

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions