aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/reflect/value.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/reflect/value.go')
-rw-r--r--src/reflect/value.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/value.go b/src/reflect/value.go
index 51128b81e..577a944ba 100644
--- a/src/reflect/value.go
+++ b/src/reflect/value.go
@@ -92,7 +92,7 @@ func (v Value) Pointer() uintptr {
}
func (v Value) IsValid() bool {
- panic("unimplemented: (reflect.Value).IsValid()")
+ return v.typecode != 0
}
func (v Value) CanInterface() bool {