]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] go/types: implement ch <- x where ch is of type parameter type
authorRob Findley <rfindley@google.com>
Sat, 17 Jul 2021 00:22:59 +0000 (20:22 -0400)
committerRobert Findley <rfindley@google.com>
Mon, 19 Jul 2021 17:08:45 +0000 (17:08 +0000)
commit19b4142f240172d525f81d1b4efb5679f147b474
tree049da77520b12d48d78950590f95c5d0a17b2480
parentd6d7f8458e9e4360d7b0a4e42c5c850ae27bac8d
[dev.typeparams] go/types: implement ch <- x where ch is of type parameter type

This is a port of CL 333712 to go/types, adjusted for the different
error reporting API and to position errors on the arrows.

Fixes #43671

Change-Id: I7d2de249e86d272c89a046f60e632e75848ff865
Reviewed-on: https://go-review.googlesource.com/c/go/+/335076
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/stmt.go
src/go/types/testdata/fixedbugs/issue47115.go2 [new file with mode: 0644]