]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix conversions from TypeParam to interface
authorkorzhao <korzhao95@gmail.com>
Mon, 16 Aug 2021 14:25:47 +0000 (22:25 +0800)
committerRobert Griesemer <gri@golang.org>
Wed, 1 Sep 2021 16:45:26 +0000 (16:45 +0000)
commit5670ff4ae593019c33b8095a6341deb657be34d7
treedc6e903d69f4a4348952a5ad7385cae0cfcb68c4
parent717f337d1d68299ca55a96e9fbb5168e8f7788f4
cmd/compile: fix conversions from TypeParam to interface

If the TypeParam has all the methods of an interface, allow conversions from TypeParam to interface

Fixes #47708

Change-Id: I40a82a31f6ea9354130dbe3bcfc83537094bf12c
Reviewed-on: https://go-review.googlesource.com/c/go/+/342509
Reviewed-by: Dan Scales <danscales@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Dan Scales <danscales@google.com>
Trust: Keith Randall <khr@golang.org>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/typecheck/subr.go
test/typeparam/issue47708.go [new file with mode: 0644]