]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: slice-to-array-pointer conversion requires go1.17
authorRob Findley <rfindley@google.com>
Fri, 30 Apr 2021 18:49:40 +0000 (14:49 -0400)
committerRobert Findley <rfindley@google.com>
Sat, 1 May 2021 11:42:29 +0000 (11:42 +0000)
commitffc38d8ab47753643687a99c66cecd8e044b5c70
treeb04ffbb7d81dfa4dacfd8d2e7fd8577887a46255
parent8e91458b19b19584f2026c227265a02724700a55
go/types: slice-to-array-pointer conversion requires go1.17

This is a port of CL 315169 to go/types. It uses a slightly different
mechanism for evaluating the convertibility error message, to be
consistent with operand.assignableTo.

Change-Id: Iea2e2a9fbb4cf17d472b2b7392786118e079528a
Reviewed-on: https://go-review.googlesource.com/c/go/+/315809
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/api.go
src/go/types/conversions.go
src/go/types/decl.go
src/go/types/testdata/check/go1_16.src [new file with mode: 0644]