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

false negative, when conversion in a condition #13

@gucio321

Description

@gucio321

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")
        }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions