Commit 8a09c131 authored by Rob Pike's avatar Rob Pike

code had syntax error masking real bug

R=ken
OCL=13505
CL=13505
parent b1abcc19
......@@ -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
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment