]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: clearer error when non-bool used as "||" and "&&" operand
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 21 Sep 2020 05:00:24 +0000 (12:00 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Tue, 22 Sep 2020 04:13:13 +0000 (04:13 +0000)
commit23573d0ea225d4b93ccd2b946b1de121c3a6cee5
treee27230763650502b4a03eef7465b355752cf60cb
parent8860251db862a091ec70e3571f0885d232187119
cmd/compile: clearer error when non-bool used as "||" and "&&" operand

Fixes #41500

Change-Id: I658d8921b7769b6e4288ca781cbdca5ff14a84ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/255899
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/typecheck.go
test/fixedbugs/issue41500.go [new file with mode: 0644]