Skip to content

Java: VariableAssign (LocalVariableDeclExpr) is not an Assignment #3266

@Marcono1234

Description

@Marcono1234

The Assignment class is described as:

A common super-class that represents all varieties of assignments.

However, it appears that where a VariableAssign is initializing a local variable (and therefore is an instance of LocalVariableDeclExpr), it is not considered an Assignment.

Sorry if I am understand something wrong here, but this appears to be pretty irritating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    JavaquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions