Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@-Pattern doesn't work with lazy values in case #3439

Open
spcfox opened this issue Dec 10, 2024 · 0 comments
Open

@-Pattern doesn't work with lazy values in case #3439

spcfox opened this issue Dec 10, 2024 · 0 comments

Comments

@spcfox
Copy link
Contributor

spcfox commented Dec 10, 2024

Steps to Reproduce

f : Lazy Bool -> Bool
f x@True = x
f x@False = x

failing "While processing right hand side of g.
         Patterns for case block in g require matching on different types."
  g : Lazy Bool -> Bool
  g b = case b of
    x@True => x
    x@False => x

h : Lazy Bool -> Bool
h b = case b of
  Delay x@True => x
  Delay x@False => x

Expected Behavior

g is defined correctly

Observed Behavior

g is incorrect while f and h is correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant