Skip to content

Dereferencing feature #491

@Dspil

Description

@Dspil

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)[:]
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions