commit | b3a0b068f7fa2d65ba781271b2c0479d103b7d7b | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Wed Dec 02 18:11:00 2020 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Thu Dec 03 16:27:28 2020 +0000 |
tree | 3c622a2563cf500f17ebe8c663685a3ba41bab6a | |
parent | 5364d15082de77d2759a01f254208d4cb4f579e3 [diff] |
compiler: cast comparison function result to expected bool type Otherwise cases like type mybool bool var b mybool = [10]string{} == [10]string{} get an incorrect type checking error. Change-Id: Id00b1821ddfa141d28b18fa58fcccad113a116df Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/274446 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>