p.go 287 Bytes
Newer Older
1 2 3 4
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file

5 6 7 8 9
package p

type T struct{ x int }
type S struct{}

Russ Cox's avatar
Russ Cox committed
10
func (p *S) get() {
11 12 13
}

type I interface {
Russ Cox's avatar
Russ Cox committed
14
	get()
15 16 17
}

func F(i I) {
Russ Cox's avatar
Russ Cox committed
18
	i.get()
19
}