1 // $G $D/${F}1.go && errchk $G $D/$F.go
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.
11 type Exported interface {
15 type Implementation struct{}
17 func (p *Implementation) private() {}
21 x = new(Implementation)
27 px.private() // ERROR "private"
29 px = new(Implementation) // ERROR "private"
31 x = px // ERROR "private"