github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/assign9.gno (about)

     1  package main
     2  
     3  type foo func(b int)
     4  
     5  func boo(b int) { println("boo", b) }
     6  
     7  func main() {
     8  	var f foo
     9  
    10  	f = boo
    11  	f(4)
    12  }
    13  
    14  // Output:
    15  // boo 4