Skip to content

Ignored value change inside a closure. #4864

@MortalFlesh

Description

@MortalFlesh

Bug report

Hello,
I've came across this problem - see snippet where the class property is not recognized to be set in the body of a callback. On the other hand if I use an accessor (see snippet it is ok even if I don't set a different value than false.

Code snippet that reproduces the problem

Expected output

So in the first example it should be ok, since the value is changed inside a closure and in the second example it should be actually always false since it is only set once to false.

Just to be clear - the first problem is what I think is a bug. The second is just a thing I noticed, which migth be useful but I don't think it is a bug.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions