From 105c61f5ede0604545bfb2ae58d5627b8ddc0614 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 8 Jun 2010 18:50:02 -0700 Subject: 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 --- test/convert3.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/convert3.go') 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) -- cgit v1.2.1