cmd/compile: misleading error for multiple value function call in contexts that do accept multiple values #15785
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Milestone
playground
I can use a function's multiple returns as arguments to another function, but cannot use them as parameters in an initialization.
If it is intended, then the compiling error
multiple-value ... in single-value context
is misleading, because an array or struct initialization can indeed take multiple values.The text was updated successfully, but these errors were encountered: