aboutsummaryrefslogtreecommitdiff
path: root/test/cmplx.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2019-03-01 05:49:48 +0000
committerMatthew Dempsky <mdempsky@google.com>2019-03-01 05:58:51 +0000
commit38642b9fced4ed79fafe31a96b2bb432474f2e36 (patch)
tree9146a7224dd39489405968b8df8b639449967e30 /test/cmplx.go
parent13d24b685a6d7b05a249f85be91c390f5595f745 (diff)
downloadgo-38642b9fced4ed79fafe31a96b2bb432474f2e36.tar.gz
go-38642b9fced4ed79fafe31a96b2bb432474f2e36.zip
Revert "cmd/compile: rewrite f(g()) for multi-value g() during typecheck"
This reverts commit d96b7fbf98bfac4861cda1b5c17a002ce8d62aa5. Reason for revert: broke noopt and longtest builders. Change-Id: Ifaec64d817c4336cb255a2e9db00526b7bc5606a Reviewed-on: https://go-review.googlesource.com/c/164757 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'test/cmplx.go')
-rw-r--r--test/cmplx.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cmplx.go b/test/cmplx.go
index d63c7ebc7e..dedf2bd8d3 100644
--- a/test/cmplx.go
+++ b/test/cmplx.go
@@ -49,10 +49,10 @@ func main() {
_ = complex(f64, F64) // ERROR "complex"
_ = complex(F64, f64) // ERROR "complex"
- _ = complex(F1()) // ERROR "not enough arguments"
- _ = complex(F3()) // ERROR "too many arguments"
+ _ = complex(F1()) // ERROR "expects two arguments.*returns 1"
+ _ = complex(F3()) // ERROR "expects two arguments.*returns 3"
- _ = complex() // ERROR "not enough arguments"
+ _ = complex() // ERROR "missing argument"
c128 = complex(f32, f32) // ERROR "cannot use"
c64 = complex(f64, f64) // ERROR "cannot use"