Skip to content

Commit

Permalink
[dev.go2go] cmd/go2go: document that function-local parameterized typ…
Browse files Browse the repository at this point in the history
…es don't work

For #39643

Change-Id: Ic3d3e4a4bd46c62705d3ce3473e3e06e1380d834
Reviewed-on: https://go-review.googlesource.com/c/go/+/238620
Reviewed-by: Ian Lance Taylor <iant@golang.org>
  • Loading branch information
ianlancetaylor committed Jun 17, 2020
1 parent 143b944 commit 4287a49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/go2go/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
// Because this tool generates Go files, and because instantiated types
// and functions need to refer to the types with which they are instantiated,
// using function-local types as type arguments is not supported.
// This is a deficiency of the tool, it will not be a deficiency in
// Similarly, function-local parameterized types do not work.
// These are deficiencies of the tool, they will work as expected in
// any complete implementation.
//
// Because this tool generates Go files, and because it generates type
Expand Down

0 comments on commit 4287a49

Please sign in to comment.