changes for more restricted reflect.SetValue

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4423043
This commit is contained in:
Russ Cox 2011-04-18 14:36:22 -04:00
parent 40fccbce6b
commit cded21a337
14 changed files with 78 additions and 56 deletions

View file

@ -999,7 +999,6 @@ type Bad0 struct {
C float64
}
func TestInvalidField(t *testing.T) {
var bad0 Bad0
bad0.CH = make(chan int)