package main import "fmt"
type T struct{}
func main() {
s := []struct{}{
struct{}{},
}
var x []T
x = append(x, s[0]) // valid
x = append(x, s...) // invalid
fmt.Println(x)
}
I feel the second append call should be also valid.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
