]> Cypherpunks repositories - gostls13.git/commit
go/types: remove a test case and update comment
authorRobert Griesemer <gri@golang.org>
Thu, 11 Oct 2018 23:47:41 +0000 (16:47 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 12 Oct 2018 16:57:39 +0000 (16:57 +0000)
commit56131cbd1d61ec446e10dfe72a96f329ed3d952a
tree5808251084f0ec6c91325eadac9a98efb2e58364
parent4fb8b1de3cf629c94910c5389220a07963bd44e2
go/types: remove a test case and update comment

The original need for the extra test case and issue was eliminated
by https://golang.org/cl/116815 which introduced systematic cycle
detection. Now that we correctly report the cycle, we can't say much
about the invalid cast anyway (the type is invalid due to the cycle).

A more sophisticated approach would be able to tell the size of
a function type independent of the details of that type, but the
type-checker is not set up for this kind of lazy type-checking.

Fixes #23127.

Change-Id: Ia8479e66baf630ce96f6f36770c8e1c810c59ddc
Reviewed-on: https://go-review.googlesource.com/c/141640
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/testdata/cycles2.src