use new conversion syntax to simplify test

SVN=118019
This commit is contained in:
Rob Pike 2008-05-07 17:34:51 -07:00
parent 37b8eb4648
commit 7fbe486b1a

View file

@ -121,9 +121,7 @@ func Test() {
v.Insert(0, i1);
v.Insert(0, i0);
for i := 0; i < v.Len(); i++ {
var x *I;
x = v.At(i);
print i, " ", x.val, "\n";
print i, " ", v.At(i).(*I).val, "\n";
}
}