Исходники и презентации
This commit is contained in:
13
lessons/functions/defer_inactive/main.go
Normal file
13
lessons/functions/defer_inactive/main.go
Normal file
@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
defer fmt.Println("code")
|
||||
if false {
|
||||
defer fmt.Println("unreacheable code")
|
||||
}
|
||||
|
||||
return
|
||||
defer fmt.Println("unreacheable code")
|
||||
}
|
||||
Reference in New Issue
Block a user