diff options
| author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2023-06-25 22:59:33 +0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-06-26 17:08:05 +0000 |
| commit | b3ca8d2b3c78d36595c534de0ca604e7d3e37123 (patch) | |
| tree | d4f7fed7fc804159af92202b1a19747c2aa5b543 /test/fixedbugs | |
| parent | ee361ce66ca5c8923e636348aba559a5e5c76c15 (diff) | |
| download | go-b3ca8d2b3c78d36595c534de0ca604e7d3e37123.tar.xz | |
types2, go/types: record final type for min/max arguments
Fixes #60991
Change-Id: I6130ccecbdc209996dbb376491be9df3b8988327
Reviewed-on: https://go-review.googlesource.com/c/go/+/506055
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'test/fixedbugs')
| -rw-r--r-- | test/fixedbugs/issue60991.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fixedbugs/issue60991.go b/test/fixedbugs/issue60991.go new file mode 100644 index 0000000000..e1d51e4300 --- /dev/null +++ b/test/fixedbugs/issue60991.go @@ -0,0 +1,13 @@ +// build + +// Copyright 2023 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package p + +import "math" + +func f() { + _ = min(0.1, 0.2, math.Sqrt(1)) +} |
