3 // Copyright 2011 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.
12 import "container/list"
14 type Painting struct {
15 fragments list.List // private
18 func (p Painting) Foo() {
19 for e := p.fragments; e.Front() != nil; { // ERROR "unexported field|hidden field"
23 // from comment 4 of issue 1910
25 Run(a int) (a int) // ERROR "a redeclared|redefinition|previous"