From 255acb0c059268c99e45b693645a256719f3abb2 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 7 Feb 2022 20:59:59 -0800 Subject: [PATCH] doc/go1.18: document behavior of go/types predicates for extended interfaces For #47694. Change-Id: Ic27193b65ef4b3c0c932107b8731b5f8d3190ad5 Reviewed-on: https://go-review.googlesource.com/c/go/+/383918 Trust: Robert Griesemer Reviewed-by: Ian Lance Taylor --- doc/go1.18.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/go1.18.html b/doc/go1.18.html index ed32a93bc3..1a68482ad6 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -909,6 +909,19 @@ Do not send CLs removing the interior tags from such phrases. field. +

+ The predicates + AssignableTo, + ConvertibleTo, + Implements, + Identical, + IdenticalIgnoreTags, and + AssertableTo + now also work with arguments that are or contain generalized interfaces, i.e. interfaces + that may only be used as type constraints in Go code. + Note that the behavior of AssertableTo is undefined if the first argument + is a generalized interface. +

-- 2.50.0