summaryrefslogtreecommitdiff
path: root/test/convert3.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-06-08 18:50:02 -0700
committerRuss Cox <rsc@golang.org>2010-06-08 18:50:02 -0700
commit105c61f5ede0604545bfb2ae58d5627b8ddc0614 (patch)
tree19d1ab733d194831a2bf78d352fc92bb71e86f7a /test/convert3.go
parent86bca21ef3fb4caf07f58216af511ce6938742e6 (diff)
downloadgo-105c61f5ede0604545bfb2ae58d5627b8ddc0614.tar.gz
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 issue 840. Fixes issue 830. Fixes issue 778. R=ken2 CC=golang-dev http://codereview.appspot.com/1303042
Diffstat (limited to 'test/convert3.go')
-rw-r--r--test/convert3.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/convert3.go b/test/convert3.go
index cb0500012..5f1f0dd94 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)