github.com/HaHadaxigua/yaegi@v1.0.1/_test/issue-1145.go (about)

     1  package main
     2  
     3  import "sync"
     4  
     5  type F func()
     6  
     7  func main() {
     8  	var wg sync.WaitGroup
     9  	var f F = wg.Done
    10  	println(f != nil)
    11  }
    12  
    13  // Output:
    14  // true