]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: add built-in name/type "comparable".
authorDan Scales <danscales@google.com>
Tue, 6 Jul 2021 03:58:56 +0000 (20:58 -0700)
committerDan Scales <danscales@google.com>
Wed, 7 Jul 2021 17:34:16 +0000 (17:34 +0000)
commitb614c05a151ffc45b8eb5725c9df399aca20663d
tree5c8a85a7682e4bc034695ac86b5ec4bfa2fdff4a
parentb4844c9f54eb6a559d8dc9333cf5b1e66dab8167
[dev.typeparams] cmd/compile: add built-in name/type "comparable".

This allows exporting comparable type bounds, and importing back into
types2 for typechecking.

Fixes typeparam/mdempsky/8.go

Change-Id: I3ee12433df2ed68ac6ef4cad24be9fcdfaaca4e3
Reviewed-on: https://go-review.googlesource.com/c/go/+/333129
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Dan Scales <danscales@google.com>
src/cmd/compile/internal/importer/support.go
src/cmd/compile/internal/noder/types.go
src/cmd/compile/internal/typecheck/bexport.go
src/cmd/compile/internal/typecheck/universe.go
src/cmd/compile/internal/types/type.go
src/go/internal/gcimporter/support.go
test/run.go