Skip to content

False positive unused variable #1809

@zolotov

Description

@zolotov

It seems that variables is always used if it is passed to anonymous function

package main func main() { var i int f(func() { i = 0; println("test") }) } func f(m func()) { m() }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions