gofmt: don't crash when rewriting nil interfaces in AST.
The new reflection API makes it an error to call value.Set(x) if x is invalid. Guard for it. Added corresponding test case. Fixes #1696. R=rsc, r CC=golang-dev https://golang.org/cl/4398047
Showing
Please
register
or
sign in
to comment