diff options
Diffstat (limited to 'src/go/types/sizes.go')
-rw-r--r-- | src/go/types/sizes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/types/sizes.go b/src/go/types/sizes.go index e8377a4f92..67052bb816 100644 --- a/src/go/types/sizes.go +++ b/src/go/types/sizes.go @@ -148,7 +148,7 @@ func (s *StdSizes) Sizeof(T Type) int64 { } offsets := s.Offsetsof(t.fields) return offsets[n-1] + s.Sizeof(t.fields[n-1].typ) - case *Sum: + case *_Sum: panic("Sizeof unimplemented for type sum") case *Interface: return s.WordSize * 2 |