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

Slice dereferencing does not work #650

Open
cbrom opened this issue Apr 16, 2021 · 0 comments
Open

Slice dereferencing does not work #650

cbrom opened this issue Apr 16, 2021 · 0 comments

Comments

@cbrom
Copy link
Contributor

cbrom commented Apr 16, 2021

package main

type Soo struct {
    sliceI32 []i32
}

func main()() {
    var sliceSoo []Soo

    var soo Soo
    sliceSoo = append(sliceSoo, soo)

    sliceSoo[0].sliceI32 = append(sliceSoo[0].sliceI32, 5)
}
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