mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: simplify parsing of type aliases
Change-Id: Ia86841cf84bc17ff6ecc6e5ac4cec86384a0da00 Reviewed-on: https://go-review.googlesource.com/31719 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
1b0cf430dd
commit
c0e2318f7c
4 changed files with 8 additions and 19 deletions
|
|
@ -90,11 +90,6 @@ func (p *noder) decls(decls []syntax.Decl) (l []*Node) {
|
|||
lastConstGroup = decl.Group
|
||||
|
||||
case *syntax.TypeDecl:
|
||||
// TODO(gri) remove this notation - we're not going to use it after all
|
||||
if decl.Alias {
|
||||
yyerror("type aliases using = not supported")
|
||||
break
|
||||
}
|
||||
l = append(l, p.typeDecl(decl))
|
||||
|
||||
case *syntax.FuncDecl:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue