natalie-lang / natalie

a work-in-progress Ruby compiler, written in Ruby and C++
https://natalie-lang.org
MIT License
931 stars 61 forks source link

Fixes to optional assignments to self #2184

Closed herwinw closed 2 months ago

herwinw commented 2 months ago

This fixes the following code patterns:

self.foo ||= bar
self.foo &&= bar
self[foo] ||= bar
self[foo] &&= bar