You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Compile bug.go
2. Run bug
What is the expected output?
EOF EOF
What do you see instead?
<nil> EOF
What is your $GOOS? $GOARCH?
darwin and amd64
Which revision are you using?
7d7941a84d46 tip
Please provide any additional information below.
f() always returns nil. g() always returns the err from h(). Both functions
should behave the same way.
func f() (err os.Error) {
if n, err := h(); err == nil {
fmt.Println(n)
}
return
}
func g() (err os.Error) {
n, err := h()
if err == nil {
fmt.Println(n)
}
return
}
by quaggy:
Attachments:
The text was updated successfully, but these errors were encountered: