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

utils.Dereference can get stuck in an infinite loop #321

Open
mlevesquedion opened this issue Jul 12, 2021 · 0 comments
Open

utils.Dereference can get stuck in an infinite loop #321

mlevesquedion opened this issue Jul 12, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@mlevesquedion
Copy link
Contributor

When a type refers to itself through a pointer, utils.Dereference can get stuck in an infinite loop:

package test

type A *A

func test(a A) {
}

Running levee on this code hangs indefinitely.

@mlevesquedion mlevesquedion added the bug Something isn't working label Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant