aboutsummaryrefslogtreecommitdiff
path: root/examples/defer.cup
Commit message (Collapse)AuthorAgeFilesLines
* Fix examples to include return type on main functionMustafa Quraish2022-02-021-1/+1
| | | | With the fancy new type checking these are now required.
* Add basic `defer` implementation.Mustafa Quraish2022-02-011-0/+13
We don't have any closures yet, so it's essentially the same as just moving the statement after the `defer` keyword to the end of the block/ right before returning from the function.