diff options
author | Russ Cox <rsc@golang.org> | 2010-06-08 18:50:02 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-06-08 18:50:02 -0700 |
commit | 565b5dc0760baf556f83adf847f578718a1c571f (patch) | |
tree | e2dc094314df75a900a88adc71677452545d74ca /test/convert3.go | |
parent | 6aaef044698bf9da21e270188f281321de98a391 (diff) | |
download | go-565b5dc0760baf556f83adf847f578718a1c571f.tar.gz go-565b5dc0760baf556f83adf847f578718a1c571f.zip |
gc: new typechecking rules
* Code for assignment, conversions now mirrors spec.
* Changed some snprint -> smprint.
* Renamed runtime functions to separate
interface conversions from type assertions:
convT2I, assertI2T, etc.
* Correct checking of \U sequences.
Fixes #840.
Fixes #830.
Fixes #778.
R=ken2
CC=golang-dev
https://golang.org/cl/1303042
Diffstat (limited to 'test/convert3.go')
-rw-r--r-- | test/convert3.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/convert3.go b/test/convert3.go index cb05000128..5f1f0dd94e 100644 --- a/test/convert3.go +++ b/test/convert3.go @@ -18,8 +18,9 @@ var f2 = []int(e) var g = []int(nil) -type H *[4]int +type H []int type J []int + var h H -var j1 J = h // ERROR "compat|illegal|cannot|cannot" +var j1 J = h // ERROR "compat|illegal|cannot" var j2 = J(h) |