Some of the assignment errors have become overly verbose. Examples:
package p
func f(int) (int, string) { return 0, "foo" }
func _() {
f("foo") // ERROR: cannot use "foo" (untyped string constant) as int value in argument to f
var _, _ int = f(0) // ERROR: cannot use 2nd function result (value of type string) as int value in multiple assignment
}
We should produce more concise errors.
See also #78884 for some examples and former (1.16) error messages.
Some of the assignment errors have become overly verbose. Examples:
We should produce more concise errors.
See also #78884 for some examples and former (1.16) error messages.