1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:44:39 -07:00

code had syntax error masking real bug

R=ken
OCL=13505
CL=13505
This commit is contained in:
Rob Pike 2008-07-27 13:30:53 -07:00
parent b1abcc195d
commit 8a09c131cc

View 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
*/