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

Error in struct flattening #1

Open
antonis19 opened this issue May 18, 2018 · 0 comments
Open

Error in struct flattening #1

antonis19 opened this issue May 18, 2018 · 0 comments

Comments

@antonis19
Copy link

In the program examplewithstruct.go the channels are encapsulated in a struct which is passed as a pointer to the two goroutines. endChannel is used to signal to main that a goroutine is exiting and is not part of the struct.

examplewithstruct.cgo contains the MiGo types extracted by migoinfer for examplewithstruct.go.
I bring your attention to lines 11 and 12. In line 11, endChannel appears as the first argument in the function call, while in line 12 it appears as the last parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant