From: Rob Findley Date: Fri, 28 Aug 2020 16:10:31 +0000 (-0400) Subject: go/types: add tests for conversion of non-constant untyped values X-Git-Tag: go1.16beta1~1165 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=45e12e95e683d0720f8c93ba059a87b2b0e58e09;p=gostls13.git go/types: add tests for conversion of non-constant untyped values This was fixed by CL 242084. Retroactively add some tests that would have failed before the fix. Also, remove some existing duplicate tests. Change-Id: I95f7a215d4a9651ded6d739f89c574f33f573c60 Reviewed-on: https://go-review.googlesource.com/c/go/+/251397 Run-TryBot: Robert Findley TryBot-Result: Gobot Gobot Reviewed-by: Robert Griesemer --- diff --git a/src/go/types/testdata/shifts.src b/src/go/types/testdata/shifts.src index ebc95ba4d7..c9a38ae169 100644 --- a/src/go/types/testdata/shifts.src +++ b/src/go/types/testdata/shifts.src @@ -193,14 +193,27 @@ func shifts6() { _ = float32(1.0 /* ERROR "must be integer" */ <