Skip to content

Refinement with ID declared later in letrec causes internal error #1700

Open
@jpolitz

Description

@jpolitz

Both of these programs (with rec or letrec) cause an internal error.

image

image

rec n :: Number%(is-zero) = 10
rec is-zero = lam(x): x == 0 end


letrec n :: Number%(is-zero) = 10,
  is-zero = lam(x): x == 0 end:
  n
end

The expected behavior is this error:

image

Probably refinements assuming the IDs are safe letrec IDs when they are not guaranteed to be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions