Lambda와 anonymous class의 this는 서로 다른 객체를 가리킨다

문법만 치환하면 this가 가리키는 대상과 이름 shadowing 규칙이 달라질 수 있습니다.

lambda this

둘러싼 instance

anonymous this

새 익명 객체

지역 이름

lambda는 바깥 scope와 공유

핵심: receiver가 필요하면 명시적 변수나 method reference로 의도를 드러냅니다.