internal/lib/reflect: type.Name type.Elem
This commit is contained in:
@@ -539,7 +539,6 @@ func pkgPathFor(t *abi.Type) string {
|
||||
}
|
||||
|
||||
func (t *rtype) Name() string {
|
||||
/*
|
||||
if !t.t.HasName() {
|
||||
return ""
|
||||
}
|
||||
@@ -556,8 +555,6 @@ func (t *rtype) Name() string {
|
||||
i--
|
||||
}
|
||||
return s[i+1:]
|
||||
*/
|
||||
panic("todo: reflect.rtype.Name")
|
||||
}
|
||||
|
||||
func nameFor(t *abi.Type) string {
|
||||
@@ -581,9 +578,7 @@ func elem(t *abi.Type) *abi.Type {
|
||||
if et != nil {
|
||||
return et
|
||||
}
|
||||
// TODO(xsw):
|
||||
// panic("reflect: Elem of invalid type " + stringFor(t))
|
||||
panic("todo: reflect.elem")
|
||||
panic("reflect: Elem of invalid type " + stringFor(t))
|
||||
}
|
||||
|
||||
func (t *rtype) Elem() Type {
|
||||
|
||||
Reference in New Issue
Block a user