]> Cypherpunks.ru repositories - gostls13.git/commit
spec: the type of a constant cannot be a type parameter
authorRobert Griesemer <gri@golang.org>
Wed, 9 Feb 2022 02:40:28 +0000 (18:40 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 9 Feb 2022 21:50:10 +0000 (21:50 +0000)
commit20c300bc70e10071bb15091f37a8bb3464cf13e3
treed803b59b0a606cfb8d53872209c9dc89210da894
parent5d3476c3dbc5e16b680e4b5ceab49c032b1b0a83
spec: the type of a constant cannot be a type parameter

Add corresponding rules and a couple of examples.

Fixes #50202.

Change-Id: I4287b5e2d0fd29a0c871795e07f1bb529c9c6004
Reviewed-on: https://go-review.googlesource.com/c/go/+/384240
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go_spec.html