]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: avoid nil-ing out a node's Type in typecheckcomplit() on error
authorDhananjay Nakrani <dhananjaynakrani@gmail.com>
Sat, 29 Oct 2016 19:10:21 +0000 (12:10 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 31 Oct 2016 22:29:40 +0000 (22:29 +0000)
commit9a8bf2d67de6884d99760a065d7af508b85e38d7
tree275a42edd9620ffddb8c33e66e17d013826f69bf
parentd35dfd405eaa21654807fac3891e198538d3c402
cmd/compile: avoid nil-ing out a node's Type in typecheckcomplit() on error

typecheckcomplit nils out node's type, upon finding new errors.
This hides new errors in children's node as well as the type info
of current node. This change fixes that.

Fixes #17645.

Change-Id: Ib473291f31c7e8fa0307cb1d494e0c112ddd3583
Reviewed-on: https://go-review.googlesource.com/32324
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/typecheck.go
test/fixedbugs/issue17645.go [new file with mode: 0644]