From 72b08dbaf316dcc9df210ad71d827922d11984d0 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 7 Jun 2023 11:19:27 -0700 Subject: [PATCH] spec: add temporary note to type inference section The section on type inference has not been updated yet for Go 1.21. Add a temporary note so that readers referred to this section from the release notes are not confused. Change-Id: Idc4c74d6d700f891c625289e873ad5aa9c2c5213 Reviewed-on: https://go-review.googlesource.com/c/go/+/501308 Reviewed-by: Ian Lance Taylor Reviewed-by: Robert Griesemer TryBot-Bypass: Robert Griesemer --- doc/go_spec.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index bcb06e72ff..bb4a3f600c 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -4383,6 +4383,10 @@ For a generic type, all type arguments must always be provided explicitly.

Type inference

+

+NOTE: This section is not yet up-to-date for Go 1.21. +

+

Missing function type arguments may be inferred by a series of steps, described below. Each step attempts to use known information to infer additional type arguments. -- 2.50.0