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

False positive in named type receiver #289

Open
sonalmahajan15 opened this issue Oct 18, 2024 · 2 comments
Open

False positive in named type receiver #289

sonalmahajan15 opened this issue Oct 18, 2024 · 2 comments
Labels
false positive Requires more analysis and support good first issue Good for newcomers

Comments

@sonalmahajan15
Copy link
Contributor

The below code results in a false positive.

type mySlice []int

func (ma mySlice) bar() {}

func foo() mySlice {
	var m mySlice
	return m
}

func test() {
	m := foo()
	m.bar() // FP here
}
@sonalmahajan15 sonalmahajan15 added false positive Requires more analysis and support good first issue Good for newcomers labels Oct 18, 2024
@sikehish
Copy link

Can I be assigned to this issue?

@muqeeth26832
Copy link

can i get assigned to this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
false positive Requires more analysis and support good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants