diff options
author | Jes Cok <xigua67damn@gmail.com> | 2024-02-27 22:39:35 +0000 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-02-28 14:08:38 +0000 |
commit | 33013e8ea821629858643f24c55805f5ddf316b5 (patch) | |
tree | 98509babb49c8c05688626a95a7520ceb620fcdc /api | |
parent | 1571c0b338971be0068861d6dd63a0da6511bc0c (diff) | |
download | go-33013e8ea821629858643f24c55805f5ddf316b5.tar.gz go-33013e8ea821629858643f24c55805f5ddf316b5.zip |
reflect: add Overflow methods to Type
This CL adds new methods synonymous with the method of the same name
in reflect.Value to reflect.Type: OverflowComplex, OverflowFloat, OverflowInt, OverflowUint.
Fixes #60427
Change-Id: I7a0bb35629e59a7429820f13fcd3a6f120194bc6
GitHub-Last-Rev: 26c11bcffe0f418e7d5c37e14587e738d5d939d6
GitHub-Pull-Request: golang/go#65955
Reviewed-on: https://go-review.googlesource.com/c/go/+/567296
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/60427.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/next/60427.txt b/api/next/60427.txt new file mode 100644 index 0000000000..0be9da0782 --- /dev/null +++ b/api/next/60427.txt @@ -0,0 +1,4 @@ +pkg reflect, type Type interface, OverflowComplex(complex128) bool #60427 +pkg reflect, type Type interface, OverflowFloat(float64) bool #60427 +pkg reflect, type Type interface, OverflowInt(int64) bool #60427 +pkg reflect, type Type interface, OverflowUint(uint64) bool #60427 |