mirror of
https://github.com/golang/go
synced 2024-11-26 11:48:03 -07:00
code had syntax error masking real bug
R=ken OCL=13505 CL=13505
This commit is contained in:
parent
b1abcc195d
commit
8a09c131cc
@ -14,10 +14,11 @@ type T struct {
|
|||||||
func main() {
|
func main() {
|
||||||
s := "";
|
s := "";
|
||||||
l1 := len(s);
|
l1 := len(s);
|
||||||
|
var t T;
|
||||||
l2 := len(T.s); // BUG: cannot take len() of a string field
|
l2 := len(T.s); // BUG: cannot take len() of a string field
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
uetli:/home/gri/go/test/bugs gri$ 6g bug057.go
|
uetli:/home/gri/go/test/bugs gri$ 6g bug057.go
|
||||||
bug057.go:13: syntax error
|
bug057.go:14: syntax error
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user