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:
Robert Griesemer 2016-10-21 17:23:01 -07:00
parent 1b0cf430dd
commit c0e2318f7c
4 changed files with 8 additions and 19 deletions

View file

@ -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: