reflect: update type code type to uintptr

This type was missed after the recent interface updates.
This commit is contained in:
Ayke van Laethem
2018-12-01 16:17:35 +01:00
parent 469193735a
commit 7bdb606d4f
+2 -2
View File
@@ -4,7 +4,7 @@ package reflect
//
// Not used directly. These types are all replaced with the number the compiler
// uses internally for the type.
type Kind uint16
type Kind uintptr
// Copied from reflect/type.go
// https://golang.org/src/reflect/type.go?s=8302:8316#L217
@@ -39,7 +39,7 @@ const (
)
// The typecode as used in an interface{}.
type Type uint16
type Type uintptr
func TypeOf(i interface{}) Type {
return ValueOf(i).typecode