summaryrefslogtreecommitdiff
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
commite2f9af1eb3fb4cce415b5e7d93331fb323c53ee7 (patch)
treedc6d48354ffd9900daaa47be55edee67a72f7d9e /test/nil.go
parent7a46d77f1317a4c2aad4e5f6ced77db457e7ffcb (diff)
downloadgo-e2f9af1eb3fb4cce415b5e7d93331fb323c53ee7.tar.gz
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 3062ea372..d0cb65dcb 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;
}