Skip to content

Commit 003211b

Browse files
committed
reflect: implement Value.Set*() for basic types
1 parent e6720d7 commit 003211b

File tree

4 files changed

+405
-89
lines changed

4 files changed

+405
-89
lines changed

src/reflect/type.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ func (t Type) Size() uintptr {
199199
case Slice:
200200
return unsafe.Sizeof(SliceHeader{})
201201
default:
202-
// Size unknown.
203-
return 0
202+
panic("unimplemented: size of type")
204203
}
205204
}
206205

0 commit comments

Comments
 (0)