Closed
Description
What version of Go are you using (go version
)?
$ go version go version devel go1.22-6e8caefc19 Fri Oct 6 22:31:47 2023 +0000 linux/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env
)?
linux/amd64
What did you do?
package main
import "fmt"
func main() {
x := []int{1, 2, 3}
x = (append)(x, 4)
fmt.Println(x)
}
What did you expect to see?
success
What did you see instead?
<unknown line number>: internal compiler error: panic: runtime error: invalid memory address or nil pointer dereference