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

     1  package main
     2  
     3  func main() {
     4  	println("hello")
     5  
     6  	var r interface{} = 1
     7  	r = recover()
     8  	if r == nil {
     9  		println("world")
    10  	}
    11  }
    12  
    13  // Output:
    14  // hello
    15  // world