1 // $G $D/$F.go || echo BUG: fails incorrectly
3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
9 const s string = "foo";
12 i := len(s); // should be legal to take len() of a constant
17 uetli:~/Source/go1/test/bugs gri$ 6g bug087.go
18 bug087.go:6: illegal combination of literals LEN 9
19 bug087.go:6: illegal combination of literals LEN 9