]> Cypherpunks repositories - gostls13.git/commit
go/types: fix internal comments and add additional test case
authorRobert Griesemer <gri@golang.org>
Wed, 5 Sep 2018 00:18:22 +0000 (17:18 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 5 Sep 2018 15:47:42 +0000 (15:47 +0000)
commit3c1b7bc7212cd894dae684ae064f4e7708b080ec
tree509f4ed3f0dab38e27ba64c26d87c8e73132c57d
parent48af3a8be593d349d7af8e831e26b5b2798a464e
go/types: fix internal comments and add additional test case

https://go-review.googlesource.com/c/go/+/132355 addressed
a crash and inadvertently fixed #27346; however the comment
added to the type-checker was incorrect and misleading.

This CL fixes the comment, and adds a test case for #27346.

Fixes #27346.
Updates #22467.

Change-Id: Ib6d5caedf302fd42929c4dacc55e973c1aebfe85
Reviewed-on: https://go-review.googlesource.com/133415
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
src/go/types/expr.go
src/go/types/testdata/issues.src