Skip to content

Refinement bound as var exposes compiler internals #1850

@zackbach

Description

@zackbach
var foo = is-empty

l :: List%(foo) = [list:]

Running this program gives the following error, which exposes compiler internals.

Image

Either vars in refinements should be disallowed as a well-formedness check (since the semantics would probably be confusing otherwise), or they should be properly supported. I prefer the former.

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