diff options
Diffstat (limited to 'src/pkg/go/ast/ast.go')
-rw-r--r-- | src/pkg/go/ast/ast.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/go/ast/ast.go b/src/pkg/go/ast/ast.go index cc1d69213..2e606b942 100644 --- a/src/pkg/go/ast/ast.go +++ b/src/pkg/go/ast/ast.go @@ -219,7 +219,7 @@ type ( // TypeAssertExpr struct { X Expr; // expression - Type Expr; // asserted type + Type Expr; // asserted type; nil means type switch X.(type) }; // A CallExpr node represents an expression followed by an argument list. @@ -546,7 +546,7 @@ type ( // A TypeCaseClause represents a case of a type switch statement. TypeCaseClause struct { token.Position; // position of "case" or "default" keyword - Type Expr; // nil means default case + Types []Expr; // nil means default case Colon token.Position; // position of ":" Body []Stmt; // statement list; or nil }; |