Skip to content

cmd/compile: erroneously rejects copy(f()) where f() is multi-valued #22328

Closed
@mdempsky

Description

@mdempsky

At tip, cmd/compile rejects this package with "missing arguments to copy":

package p
func f() ([]byte, string) { return nil, "" }
var _ = copy(f())

The same package is accepted by go/types and gccgo, and seemingly valid according to the spec.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions