From: Robert Griesemer Date: Fri, 21 Dec 2012 19:52:21 +0000 (-0800) Subject: go/ast: ast.DeclStmt.Decl must be an *ast.GenDecl node (documentation) X-Git-Tag: go1.1rc2~1567 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4f79cef7f2d58f6d08e07a94d5214b2f61f4d3df;p=gostls13.git go/ast: ast.DeclStmt.Decl must be an *ast.GenDecl node (documentation) R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6996046 --- diff --git a/src/pkg/go/ast/ast.go b/src/pkg/go/ast/ast.go index e1582c3006..bf533d1d24 100644 --- a/src/pkg/go/ast/ast.go +++ b/src/pkg/go/ast/ast.go @@ -555,7 +555,7 @@ type ( // A DeclStmt node represents a declaration in a statement list. DeclStmt struct { - Decl Decl + Decl Decl // *GenDecl with CONST, TYPE, or VAR token } // An EmptyStmt node represents an empty statement.