Commit 8473b448 authored by Robert Griesemer's avatar Robert Griesemer

go/types: export data result types are always parenthesized

Minor simplification of gcimporter, removed TODO.

R=adonovan
CC=golang-dev
https://golang.org/cl/7363044
parent a2ade452
......@@ -548,13 +548,7 @@ func (p *gcParser) parseSignature() *Signature {
// optional result type
var results []*Var
switch p.tok {
case scanner.Ident, '[', '*', '<', '@':
// TODO(gri) does this ever happen?
// single, unnamed result
results = []*Var{{Type: p.parseType()}}
case '(':
// named or multiple result(s)
if p.tok == '(' {
var variadic bool
results, variadic = p.parseParameters()
if variadic {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment