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

     1  package main
     2  
     3  func f1(a int) interface{} { return a + 1 }
     4  
     5  func main() {
     6  	c := f1(3)
     7  	println(c.(int))
     8  }
     9  
    10  // Output:
    11  // 4