Skip to content

Indexed families should fast-fail rather than spin forever #28

@Equilibris

Description

@Equilibris

In the current system, one can write:

data QpfList2 α
  | nil
  | cons : α → QpfList2 Bool → QpfList2 α
                        ^^^^

Notice the improper use of Bool, which means this definition of QpfList2 uses α as an index.

This should throw an error, instead, currently this causes the elaborator to spin forever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions