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

     1  package main
     2  
     3  func rec() {
     4  	println(recover())
     5  }
     6  
     7  func main() {
     8  	defer rec()
     9  
    10  	panic("ahhhhh")
    11  }
    12  
    13  // Output:
    14  // ahhhhh