Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

false negative, when conversion in a condition #13

Closed
gucio321 opened this issue May 31, 2021 · 0 comments
Closed

false negative, when conversion in a condition #13

gucio321 opened this issue May 31, 2021 · 0 comments

Comments

@gucio321
Copy link

Hi,
linter returns false negative on a following code:

code
package main

import "fmt"

func main() {
        i := 2
        if int(i) != 2 {
                fmt.Println("i != 2")
        }
}
esimonov pushed a commit that referenced this issue Dec 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants