hawkw / decaf

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

Array has no such field "length" #50

Closed hawkw closed 9 years ago

hawkw commented 9 years ago
*** Error line 10.
   for (a = 0; a < arr.length(); a = a + 1)
                   ^
*** string[] has no such field 'length'

We need to either add fake nodes for array.length() to the scope tree much as we do for this, or special-case it when we check calls.

hawkw commented 9 years ago

Max fixed this one in 79931b3