]> Cypherpunks repositories - gostls13.git/commit
spec: clarify type term restriction for type parameters
authorRobert Griesemer <gri@golang.org>
Wed, 30 Mar 2022 21:13:39 +0000 (14:13 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 31 Mar 2022 01:01:43 +0000 (01:01 +0000)
commitea858734be6e711fa2d41fdeb6038ff09e3c7841
tree9d76ed670d49677c1bacc7e5d2e896848b16d3f0
parent81f1cc52abb0b004d8cd1b130ea293026419acac
spec: clarify type term restriction for type parameters

Be clear that the type of a term (not the term itself, which may
be of the form ~P) cannot be a type parameter.

For #50420.

Change-Id: I388d57be0618393d7ebe2c74ec04c1ebe3f33f7d
Reviewed-on: https://go-review.googlesource.com/c/go/+/396915
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
doc/go_spec.html