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 func putint(digits *string) {
11 i = (*digits)[7]; // compiles
12 i = digits[7]; // ERROR "illegal|is not|invalid"
17 s := "asdfasdfasdfasdf";
22 bug022.go:8: illegal types for operand
23 (*<string>*STRING) INDEXPTR (<int32>INT32)
24 bug022.go:8: illegal types for operand