github.com/traefik/yaegi@v0.15.1/_test/type29.go (about)

     1  package main
     2  
     3  var Foo int
     4  
     5  func (f Foo) Bar() int {
     6  	return 1
     7  }
     8  
     9  func main() {}
    10  
    11  // Error:
    12  // 5:1: cannot define new methods on non-local type int