Skip to content

Multiple assignment error is not reported #1842

@horkhe

Description

@horkhe
func Foo() (int, int) {
    a, b := 0, 0
    a, b = 1, 1
    a, b += 1, 1 // Should be error: `syntax error: unexpected op=, expecting := or = or comma`
    return a, b
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions