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 a5f7278eb..28308f751 100644
--- a/src/reflect/value.go
+++ b/src/reflect/value.go
@@ -156,7 +156,7 @@ func (v Value) CanInterface() bool {
}
func (v Value) CanAddr() bool {
- panic("unimplemented: (reflect.Value).CanAddr()")
+ return v.flags&(valueFlagIndirect) == valueFlagIndirect
}
func (v Value) Addr() Value {