quarkiverse / quarkus-bon-jova-rockstar

An implementation of Rockstar as a JVM language
https://codewithrockstar.com/
3 stars 2 forks source link

Don't allow return statements in statement lists #109

Closed holly-cummins closed 9 months ago

holly-cummins commented 9 months ago

They should be counted as part of the function declaration.

This fixes #104, but I don't entirely understand the mechanism. What's extra confusing is that the same code fails, when run as part of the bytecode generator unit tests - why?!