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

Dereferencing feature #491

Open
Dspil opened this issue Jul 20, 2022 · 0 comments · May be fixed by #531
Open

Dereferencing feature #491

Dspil opened this issue Jul 20, 2022 · 0 comments · May be fixed by #531
Assignees
Labels
encoding enhancement New feature or request

Comments

@Dspil
Copy link
Contributor

Dspil commented Jul 20, 2022

Gobra accepts the following 2 examples:

type A struct {
	x int
}

func main() {
	var x *A
	var y *A = &(*x)
	assert y == x
}

and

func main() {
	var x *[3]int
	var y []int = (*x)[:]
}
@Dspil Dspil added enhancement New feature or request encoding labels Jul 20, 2022
Felalolf added a commit that referenced this issue Jul 20, 2022
@jcp19 jcp19 linked a pull request Oct 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
encoding enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants