mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: split SetInterface from SetFields
Change-Id: I4e568414faf64d3d47b1795382f0615f6caf53bc Reviewed-on: https://go-review.googlesource.com/38390 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
df47b82174
commit
236ef852be
4 changed files with 9 additions and 3 deletions
|
|
@ -382,7 +382,7 @@ func makeErrorInterface() *Type {
|
|||
field.Type = f
|
||||
|
||||
t := typ(TINTER)
|
||||
t.SetFields([]*Field{field})
|
||||
t.SetInterface([]*Field{field})
|
||||
return t
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue