this-as behaves incorrectly in "scoping function"

Description

When a this-as expression gets put in a "scoping function", e.g. in a let-binding, the value bound via this-as refers to the scoping function, and not to the outer scope.

Example:

Whereas foo.getBarRight expands to something like

foo.getBarWrong on the other hand expands to

Environment

None
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

David Nolen

Reporter

import