github.com/jmigpin/editor@v1.6.0/core/godebug/testdata/src16.txt (about)

     1  # able to compile reference to method in type
     2  ucmd godebugtester run main.go
     3  contains stdout "&A{}=&{}"
     4  
     5  -- main.go --
     6  package main
     7  func main() {
     8  	a:=&A{}
     9  	v:=(*A).f1
    10  	_,_=a,v
    11  }
    12  type A struct{}
    13  func (a*A) f1()(int,int){
    14  	return 1, 2
    15  }
    16