github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/nil2.gno (about) 1 package main 2 3 func test() error { return nil } 4 5 func main() { 6 if err := test(); nil == err { 7 println("err is nil") 8 } 9 } 10 11 // Output: 12 // err is nil