aboutsummaryrefslogtreecommitdiff
path: root/test/nil.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-06-18 13:53:51 -0700
committerRob Pike <r@golang.org>2008-06-18 13:53:51 -0700
commit080bd1ec8a726a0c8070432aef3c906edf051e9a (patch)
treedc6d48354ffd9900daaa47be55edee67a72f7d9e /test/nil.go
parent727ea928d5586b75a781254d6265b8696c6e8863 (diff)
downloadgo-080bd1ec8a726a0c8070432aef3c906edf051e9a.tar.gz
go-080bd1ec8a726a0c8070432aef3c906edf051e9a.zip
a couple of bugs around nil are fixed
SVN=123423
Diffstat (limited to 'test/nil.go')
-rw-r--r--test/nil.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/nil.go b/test/nil.go
index 3062ea372d..d0cb65dcb3 100644
--- a/test/nil.go
+++ b/test/nil.go
@@ -21,7 +21,7 @@ func main() {
var c *chan int;
var t *T;
var in IN;
- var ta *[]T;
+ var ta *[]IN;
i = nil;
f = nil;
@@ -30,6 +30,6 @@ func main() {
c = nil;
t = nil;
i = nil;
- ta = new([1]T);
- ta[0] = nil; //BUG (see bugs/bug045.go)
+ ta = new([1]IN);
+ ta[0] = nil;
}