diff options
author | Robert Griesemer <gri@golang.org> | 2013-04-03 07:41:26 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2013-04-03 07:41:26 -0700 |
commit | 2ba6ecb3e2bec6b30667c1969772d7e5063f384b (patch) | |
tree | 1533b0a7620af6652f92560e5a4888f4b1d9bf3e /src/cmd/gofmt/gofmt_test.go | |
parent | b39fb1dacff4d39b843bf1048ae0b52cb771a5ee (diff) | |
download | go-git-2ba6ecb3e2bec6b30667c1969772d7e5063f384b.tar.gz |
go/parser: ParseExpr must accept type expressions
My old code was trying to be too smart.
Also: Slightly better error message format
for gofmt -r pattern errors.
Fixes #4406.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/8267045
Diffstat (limited to 'src/cmd/gofmt/gofmt_test.go')
-rw-r--r-- | src/cmd/gofmt/gofmt_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/gofmt/gofmt_test.go b/src/cmd/gofmt/gofmt_test.go index 8ff00a253a..75a322a6c8 100644 --- a/src/cmd/gofmt/gofmt_test.go +++ b/src/cmd/gofmt/gofmt_test.go @@ -84,6 +84,7 @@ var tests = []struct { {"testdata/rewrite5.input", "-r=x+x->2*x"}, {"testdata/rewrite6.input", "-r=fun(x)->Fun(x)"}, {"testdata/rewrite7.input", "-r=fun(x...)->Fun(x)"}, + {"testdata/rewrite8.input", "-r=interface{}->int"}, {"testdata/stdin*.input", "-stdin"}, {"testdata/comments.input", ""}, {"testdata/import.input", ""}, |