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 Inference fail #1

Open
nickng opened this issue Oct 31, 2016 · 0 comments
Open

Type Inference fail #1

nickng opened this issue Oct 31, 2016 · 0 comments
Labels

Comments

@nickng
Copy link
Owner

nickng commented Oct 31, 2016

The following code results in a stack overflow:

proc, _ := asyncpi.Parse(strings.NewReader("(new a)a<a>"))
fmt.Println(asyncpi.GenerateGo(proc))

Because a type inference tries to infer the type of a by looking into the value being sent by channel a (which is itself), but the result should be a type error because the type system cannot handle recursive definition in this simple implementation.

@nickng nickng added the bug label Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant