commit | 080bd1ec8a726a0c8070432aef3c906edf051e9a | [log] [tgz] |
---|---|---|
author | Rob Pike <r@golang.org> | Wed Jun 18 13:53:51 2008 -0700 |
committer | Rob Pike <r@golang.org> | Wed Jun 18 13:53:51 2008 -0700 |
tree | dc6d48354ffd9900daaa47be55edee67a72f7d9e | |
parent | 727ea928d5586b75a781254d6265b8696c6e8863 [diff] [blame] |
a couple of bugs around nil are fixed SVN=123423
diff --git a/test/nil.go b/test/nil.go index 3062ea3..d0cb65d 100644 --- a/test/nil.go +++ b/test/nil.go
@@ -21,7 +21,7 @@ var c *chan int; var t *T; var in IN; - var ta *[]T; + var ta *[]IN; i = nil; f = nil; @@ -30,6 +30,6 @@ 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; }