Defer in if-statements



examples/defer-no-in-if/defer_no_in_if.go
package main

import (
    "fmt"
)

func main() {
    if true {
        fmt.Println("Before")
        defer fmt.Println("Middle")
        fmt.Println("After")    
    }

    fmt.Println("Outside")
}