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

Linter does not report undefined on += and similar operators #1671

Closed

Description

dest += 1

image

Activity

  1. jakebailey commented on Oct 11, 2019

    @jakebailey
    Member

    We don't consider assignment operators to be actual assignments, since they'd need to have some sort of assignment beforehand to then add to. We could make this more loose but it might be strange.

    I misinterpreted when I wrote this comment; the title says that this is an issue (not that it should be okay and make dest defined).

  2. bsandrow commented on Oct 23, 2019

    @bsandrow

    Shouldn't dest be marked as an undefined variable on the += line if you want to keep that classification?

  3. jakebailey commented on Oct 23, 2019

    @jakebailey
    Member

    Yes, that's what this bug is about, that it should. The linter is likely just not walking the lefthand side of these augmented assignments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions