github.com/switchupcb/yaegi@v0.10.2/_test/run6.go (about)

     1  package main
     2  
     3  type fn func(int)
     4  
     5  func test(f fn, v int) { f(v) }
     6  
     7  func main() {
     8  	test(func(i int) { println("f1", i) }, 21)
     9  }
    10  
    11  // Output:
    12  // f1 21