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

This program should be rejected by the type checker #1565

Closed
athas opened this issue Jan 10, 2022 · 0 comments
Closed

This program should be rejected by the type checker #1565

athas opened this issue Jan 10, 2022 · 0 comments

Comments

@athas
Copy link
Member

athas commented Jan 10, 2022

let main [n] (xs: [n]i32) (ys: [n]i32) =
  loop (xs,ys) for i < 10 do
  let zs = filter (>0) (map2 (+) xs ys)
  in (xs, zs)

Something is (unsurprisingly) wrong with the size inference for loops.

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