diff options
| author | Hiroshi Ioka <hirochachacha@gmail.com> | 2018-04-30 17:36:23 +0900 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2018-05-01 00:44:48 +0000 |
| commit | a4aa2e0c280237f5e4d22f84386bcfee2f9cec3f (patch) | |
| tree | 3f3eb09a777d9da75f8ae536b8c546096e734c84 /src | |
| parent | c2fdb42b1632b054d382b05ebfb6cb903dbb9531 (diff) | |
| download | go-a4aa2e0c280237f5e4d22f84386bcfee2f9cec3f.tar.xz | |
cmd/cgo: visit cgo type inside ellipsis node
Fixes #25143
Change-Id: Ide654fe70651fda827cdeeaaa73d2a1f8aefd7e7
Reviewed-on: https://go-review.googlesource.com/110159
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/cgo/ast.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/cgo/ast.go b/src/cmd/cgo/ast.go index 58e0ee78cb..8dceb25ca6 100644 --- a/src/cmd/cgo/ast.go +++ b/src/cmd/cgo/ast.go @@ -356,6 +356,7 @@ func (f *File) walk(x interface{}, context astContext, visit func(*File, interfa case *ast.BadExpr: case *ast.Ident: case *ast.Ellipsis: + f.walk(&n.Elt, ctxType, visit) case *ast.BasicLit: case *ast.FuncLit: f.walk(n.Type, ctxType, visit) |
