]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] go/types: embedded type cannot be a (pointer to) a type parameter
authorRob Findley <rfindley@google.com>
Tue, 3 Aug 2021 20:32:23 +0000 (16:32 -0400)
committerRobert Findley <rfindley@google.com>
Wed, 4 Aug 2021 11:06:10 +0000 (11:06 +0000)
commit18e0503724e64c3d55dbc705eb4f08be2fde1b32
treea8ca1ca141c8189d933782029bf07c1935633ee5
parent89897473e289a58bf9608d525f1e9b4abd970c8d
[dev.typeparams] go/types: embedded type cannot be a (pointer to) a type parameter

This is a port of CL 337353 to go/types, adjusted for the error API and
to comment out a test for MethodSet.

Some nearby error messages that were using errorf rather than error were
also adjusted.

Fixes #43621

Change-Id: I28c9747e044ec7a2863f6890db69475fb8c29231
Reviewed-on: https://go-review.googlesource.com/c/go/+/339651
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/methodset_test.go
src/go/types/struct.go
src/go/types/testdata/check/typeparams.go2
src/go/types/testdata/fixedbugs/issue39938.go2