Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions runtime/internal/lib/reflect/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,6 @@ func pkgPathFor(t *abi.Type) string {

func (t *rtype) Name() string {
if !t.t.HasName() {
// For basic types (int, string, etc.), String() returns the type name directly.
// Basic types don't have TFlagNamed set, but they do have names.
if t.t.Kind() <= abi.UnsafePointer {
return t.String()
}
return ""
}
s := t.String()
Expand Down
Loading
Loading