]> Cypherpunks repositories - gostls13.git/commitdiff
code had syntax error masking real bug
authorRob Pike <r@golang.org>
Sun, 27 Jul 2008 20:30:53 +0000 (13:30 -0700)
committerRob Pike <r@golang.org>
Sun, 27 Jul 2008 20:30:53 +0000 (13:30 -0700)
R=ken
OCL=13505
CL=13505

test/bugs/bug057.go

index f68c797dad868f2a8be8453df642836c3e92c0a6..cb23961cab052ac86c4a7e552a5df797d10a4091 100644 (file)
@@ -14,10 +14,11 @@ type T struct {
 func main() {
   s := "";
   l1 := len(s);
+  var t T;
   l2 := len(T.s);  // BUG: cannot take len() of a string field
 }
 
 /*
 uetli:/home/gri/go/test/bugs gri$ 6g bug057.go 
-bug057.go:13: syntax error
+bug057.go:14: syntax error
 */