From 8d77d2c8f0f31159025cd0ddfb4d92147d659ca4 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 5 Mar 2014 19:37:44 -0800 Subject: [PATCH] spec: be more precise about underlying types of predeclared types The underlying type of the predeclared type error is not itself, but the interface it is defined as. Fixes #7444. LGTM=r, rsc R=r, rsc, iant, ken CC=golang-codereviews https://golang.org/cl/71790044 --- doc/go_spec.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index dada503574..b89aafebe7 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -674,7 +674,8 @@ types, the dynamic type is always the static type.

Each type T has an underlying type: If T -is a predeclared type or a type literal, the corresponding underlying +is one of the predeclared boolean, numeric, or string types, or a type literal, +the corresponding underlying type is T itself. Otherwise, T's underlying type is the underlying type of the type to which T refers in its type declaration. -- 2.50.0