Skip to content

New pattern guards do not support case splitting #3995

Open
@andreasabel

Description

The new pattern guards feature (#3880) does not work with case-splitting:

open import Agda.Builtin.Nat

test : Set
test with x  1 = {!x!}  -- split on x here

-- IS: Produces the following lines and error "Unexpected with patterns"
-- test | zero = ?
-- test | suc x = ?  -- split on x here

-- SHOULD: Produce
-- test with suc x ← 1 = ?

Metadata

Assignees

No one assigned

    Labels

    not-in-changelogThis issue should not be listed in the changelog.pattern guardsConcerning the `with p <- e` lhs syntaxtype: bugIssues and pull requests about actual bugsux: case splittingIssues relating to the case split ("C-c C-c") command

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions