hawkw / decaf

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

Print statement should be type checked as though it were a call #49

Closed hawkw closed 9 years ago

hawkw commented 9 years ago

Currently, when checkTypes() hits a print statement, it makes a MatchError. I'd rather not special-case these, is there a way to make it count as a regular function call here? Maybe through adding a fake node at global scope the same way we add "this" to class scopes?