aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mpagealloc.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@google.com>2025-06-17 17:09:27 -0700
committerGopher Robot <gobot@golang.org>2025-07-24 09:04:33 -0700
commitcae45167b79ec3838f0cabb19394bcd99810f79a (patch)
treed29bf1cc53a4653c77bb9d0a35b408f4a0a901c2 /src/runtime/mpagealloc.go
parent2ddf542e4c30b2d4886482c44b57259f5b461158 (diff)
downloadgo-cae45167b79ec3838f0cabb19394bcd99810f79a.tar.xz
go/types, types2: better error messages for certain type mismatches
When an untyped operand of a (typically binary) operation does not match the type of the operand and an implicit conversion is not possible, the error message should report a "type mismatch". The type-checkers mostly did so, but not for untyped numeric types to other types (e.g. an untyped int vs a function); in those cases it reported that the (impossible) conversion failed. Fix this for numeric types. This also improves the position and messages for some incorrect min/max built-in calls. Fixes #73428. Change-Id: I8af071918b73fcc72f16cc61858d7baca57fc259 Reviewed-on: https://go-review.googlesource.com/c/go/+/682495 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Mark Freeman <mark@golang.org> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com>
Diffstat (limited to 'src/runtime/mpagealloc.go')
0 files changed, 0 insertions, 0 deletions