It can, and this is mentioned in the error chain design doc[1].
[1]: https://go.googlesource.com/proposal/+/master/design/go2draf...
Re:Go 2 Draft Designs
by ianlancetaylor on Tuesday August 28, 2018 @12:57PM
(#17860483)
Yes, what you write should work with the current draft.
Cool. It isn't something I'd want to abuse, but there are places in my code where it would clean things up nicely, too.
What I am still curious about, and can't see whether or not is possible from the current draft (possible I've just skimmed too hard) is whether printSum can become:
Possibly with an addition paren around the check.(I'm just using this as an example; in this case I probably would assign x & y on separate lines since in this case this saves no lines, but there are other cases where I've wanted to be able to call a function that has an error but avoid the 4-line dance to unpack it.)