]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: document nil scope for imported and instantiated Func objects
authorRobert Griesemer <gri@golang.org>
Thu, 11 Nov 2021 19:57:43 +0000 (11:57 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 11 Nov 2021 20:45:40 +0000 (20:45 +0000)
commitccd41cc05e3ee2f0d0ded1d7faf9c1f43ce1037b
tree36c2278ed6188206f2b15c09af46740abf810a2e
parent10d3b1355184320f6d9623cb35e848e5af7c29ed
go/types, types2: document nil scope for imported and instantiated Func objects

Also, don't set the scope anymore when instantiating (substituting)
a signature.

Per discussion with rfindley.

Change-Id: I560d4571c7ff14b0df3e15fece634cb5f9f94a99
Reviewed-on: https://go-review.googlesource.com/c/go/+/363435
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/object.go
src/cmd/compile/internal/types2/signature.go
src/cmd/compile/internal/types2/subst.go
src/go/types/object.go
src/go/types/signature.go
src/go/types/subst.go