diff options
author | Russ Cox <rsc@golang.org> | 2009-05-08 15:40:14 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-05-08 15:40:14 -0700 |
commit | 917aa35f8ff95052459538c2e5bae80d1c9a307e (patch) | |
tree | ac8aca82e0cdf34df99f8ef940c5ccd74117e926 /test/convert.go | |
parent | cd3ab57a9c2d6088ad1deef97786d5b9f01343f6 (diff) | |
download | go-917aa35f8ff95052459538c2e5bae80d1c9a307e.tar.gz go-917aa35f8ff95052459538c2e5bae80d1c9a307e.zip |
implications of stricter type equality:
if both types are named, they must be
the same type (arising from the same
declaration).
R=r,gri
DELTA=44 (21 added, 4 deleted, 19 changed)
OCL=28436
CL=28577
Diffstat (limited to 'test/convert.go')
-rw-r--r-- | test/convert.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/convert.go b/test/convert.go index 4952e01b76..1b933f93bf 100644 --- a/test/convert.go +++ b/test/convert.go @@ -40,14 +40,11 @@ func main() { panicln("type of f is", t, "want", want); } - want = typeof(x); + want = typeof(a); if t := typeof(+a); t != want { panicln("type of +a is", t, "want", want); } if t := typeof(a+0); t != want { panicln("type of a+0 is", t, "want", want); } - if t := typeof(a+b); t != want { - panicln("type of a+b is", t, "want", want); - } } |