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

Programs segfault in absence of occurs check #614

Open
4y8 opened this issue Dec 10, 2024 · 0 comments
Open

Programs segfault in absence of occurs check #614

4y8 opened this issue Dec 10, 2024 · 0 comments

Comments

@4y8
Copy link

4y8 commented Dec 10, 2024

The following program compiles with v3.1.3 of koka:

fun g()
  fn () g()

fun main()
  println(g()() + 1)

But it segfaults when executed.
The type inferred for g is: forall<a,e> () -> div (() -> e a), which does not capture the fact that a and (() -> e a) should be the same type.

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

2 participants