Skip to content

Undefined variable is not reported #1907

Closed
@horkhe

Description

@horkhe
func test(ch chan string) string {
    select {
    case s := <- ch:
    }
    return s  // Should be reported error: `undefined: s`
}

Plugin version: 0.9.530

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions