Descriptiongofmt: 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 issue 1696.
Patch Set 1 #Patch Set 2 : diff -r 00dbc1478eca https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 00dbc1478eca https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 00dbc1478eca https://go.googlecode.com/hg/ #Patch Set 5 : diff -r 00dbc1478eca https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|