hawkw / decaf

like Java, but less so
hawkweisman.me/decaf
Other
18 stars 4 forks source link

Fix this #15

Closed hawkw closed 9 years ago

hawkw commented 9 years ago

As of 6a5ab4d, the this keyword doesn't work.

hawkw commented 9 years ago

Turns out it's not the this keyword that's broken, it's assignments to field accesses - I added a test for that in 29d6c41. We're currently parsing field access with a dot in expr and field accesses without a dot (i.e. an identifier) in storage, but according to the spec they are both LValues. Problem is that just moving them to LValue messes up a bunch of tests that were previously passing...

hawkw commented 9 years ago

ec6db2f closes this.