I presume the composite literal is messing up the "append" param type inference.
Note that we also don't infer the type in this case:
varfoo []intappend([]int{}, <>) // want "foo..."
In the first example we need to infer based on the struct field type, and in the second example we need to infer based on the first "append" param type.
The text was updated successfully, but these errors were encountered:
We aren't giving proper completions in this case:
I presume the composite literal is messing up the "append" param type inference.
Note that we also don't infer the type in this case:
In the first example we need to infer based on the struct field type, and in the second example we need to infer based on the first "append" param type.
The text was updated successfully, but these errors were encountered: