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

Type checker crash #1926

Closed
athas opened this issue Apr 24, 2023 · 0 comments
Closed

Type checker crash #1926

athas opened this issue Apr 24, 2023 · 0 comments

Comments

@athas
Copy link
Member

athas commented Apr 24, 2023

type found = #found i32 | #not_found

def main =
  let o = map (\x -> if (x > 3) then (#found x) else (#not_found)) [0, 1, 2, 3, 4]
  let u = match o
    case #found x -> x
    case #not_found -> -1
  in u
@athas athas closed this as completed in b5e67fb Apr 25, 2023
athas added a commit that referenced this issue Apr 26, 2023
razetime pushed a commit to razetime/futhark that referenced this issue May 27, 2023
razetime pushed a commit to razetime/futhark that referenced this issue May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant