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

No support for fields of a function type in a struct definition #137

Closed
jcp19 opened this issue Dec 6, 2020 · 1 comment
Closed

No support for fields of a function type in a struct definition #137

jcp19 opened this issue Dec 6, 2020 · 1 comment
Labels

Comments

@jcp19
Copy link
Contributor

jcp19 commented Dec 6, 2020

Currently, Gobra does not allow struct definitions with fields of function types such as

type S struct {
	f func() int
}

because there is not support for function types at the internal language level

@jcp19 jcp19 added enhancement New feature or request minor labels Dec 6, 2020
@jcp19
Copy link
Contributor Author

jcp19 commented Jan 17, 2023

Fixed when closures were introduced #479

@jcp19 jcp19 closed this as completed Jan 17, 2023
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