1
0
mirror of https://github.com/golang/go synced 2024-11-07 14:56:16 -07:00
go/test/typeparam/mdempsky
Robert Griesemer 46e3d9d12a cmd/compile: use "satisfies" (not "implements") for constraint errors
Per the latest spec, we distinguish between interface implementation
and constraint satisfaction. Use the verb "satisfy" when reporting
an error about failing constraint satisfaction.

This CL only changes error messages. It has no impact on correct code.

Fixes #57564.

Change-Id: I6dfb3b2093c2e04fe5566628315fb5f6bd709f17
Reviewed-on: https://go-review.googlesource.com/c/go/+/460396
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-01-04 19:07:27 +00:00
..
1.dir
3.dir
4.dir
7.dir
8.dir cmd/compile: use "satisfies" (not "implements") for constraint errors 2023-01-04 19:07:27 +00:00
10.dir
12.dir
1.go
2.go
3.go
4.go
5.go
6.go
7.go
8.go
9.go
10.go
12.go
13.go
14.go
15.go
16.go
17.go
18.go
18.out
19.go
20.go
21.go cmd/compile: fix devirtualization bug with unified IR 2022-08-18 17:26:32 +00:00