]> Cypherpunks.ru repositories - gostls13.git/commit
spec: adjust rules for specific types once more
authorRobert Griesemer <gri@golang.org>
Sat, 8 Jan 2022 02:20:22 +0000 (18:20 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 12 Jan 2022 01:41:46 +0000 (01:41 +0000)
commit3df44722013b54790e97a32aff945708bd1b62f7
treeaca537653ec85bf970b0f4732fb31849f8d4ff91
parent9bce08999a4122a28daf99cde7f22cb023b79660
spec: adjust rules for specific types once more

Introduce a (local) notion of a set of representative types,
which serves as a representation/approximation of an
interface's actual type set. If the set of representative
types is is non-empty and finite, it corresponds to the set
of specific types of the interface.

In the implementation, the set of representative types serves
as a finite representation of an interface's type set, together
with the set of methods.

Change-Id: Ib4c6cd5e17b81197672e4247be9737dd2cb6b56f
Reviewed-on: https://go-review.googlesource.com/c/go/+/376834
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go_spec.html