Skip to content

Commit

Permalink
[dev.go2go] cmd/compile/internal/syntax: accept [] for type parameter…
Browse files Browse the repository at this point in the history
… lists

Still missing:
- embedded []-instantiated types in interfaces
- *B.go2 tests which exist for go/types

Change-Id: I3dd115fcd67f725144062c90550a91fcded1cbe2
Reviewed-on: https://go-review.googlesource.com/c/go/+/246259
Reviewed-by: Robert Griesemer <gri@golang.org>
  • Loading branch information
griesemer committed Aug 1, 2020
1 parent c77c323 commit 417abfb
Show file tree
Hide file tree
Showing 4 changed files with 314 additions and 60 deletions.
7 changes: 4 additions & 3 deletions src/cmd/compile/internal/syntax/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,10 @@ type (

// Fun(ArgList[0], ArgList[1], ...)
CallExpr struct {
Fun Expr
ArgList []Expr // nil means no arguments
HasDots bool // last argument is followed by ...
Fun Expr
ArgList []Expr // nil means no arguments
HasDots bool // last argument is followed by ...
Brackets bool // []'s instead of ()'s
expr
}

Expand Down
Loading

0 comments on commit 417abfb

Please sign in to comment.