1// run
2
3// Copyright 2012 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.
6
7package main
8
9type I interface {
10	m() int
11}
12
13type T struct{}
14
15func (T) m() int {
16	return 3
17}
18
19var t T
20
21var ret = I.m(t)
22
23func main() {
24	if ret != 3 {
25		println("ret = ", ret)
26		panic("ret != 3")
27	}
28}
29
30