Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppressions for package clause #1896

Closed
ignatov opened this issue Oct 1, 2015 · 0 comments
Closed

Suppressions for package clause #1896

ignatov opened this issue Oct 1, 2015 · 0 comments
Assignees
Milestone

Comments

@ignatov
Copy link
Contributor

ignatov commented Oct 1, 2015

//noinspection ALL
package main
import "fmt"

func typicalFunction() (res int) {
    defer func() {
        fmt.Println("I am deferred")
        res = 2
        return
    }()
    fmt.Println("return now")
    return 1
}

func main() {
    fmt.Println(typicalFunction())
}
@ignatov ignatov added this to the 1.0.0 milestone Oct 1, 2015
@zolotov zolotov closed this as completed in 6ad9d65 Oct 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants