23573d0 cmd/compile: clearer error when non-bool used as "||" and "&&" operand

Authored and Committed by Cuong Manh Le 3 years ago
    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>