cmd/gc: allow new conversion syntax
For consistency with conversions that look like function calls, conversions that don't look like function calls now allow an optional trailing comma. That is, int(x,) has always been syntactically valid. Now []int(x,) is valid too. Fixes #4162. R=ken2 CC=golang-dev https://golang.org/cl/7288045
Showing
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
test/fixedbugs/issue4162.go
0 → 100644
Please
register
or
sign in
to comment