Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"return", "continue", "break" cause scala errors in 2.1.1 #58

Open
puleo1 opened this issue Mar 24, 2024 · 0 comments
Open

"return", "continue", "break" cause scala errors in 2.1.1 #58

puleo1 opened this issue Mar 24, 2024 · 0 comments

Comments

@puleo1
Copy link

puleo1 commented Mar 24, 2024

Each of the following expressions, evaluated in a fresh Worksheet, errors out with a stack trace starting with scala.MatchError. As far as I can tell, each should be valid CGScript syntax:

def foo() begin return 42; end
for i from 1 to 5 do if i == 3 then continue; end System.Print(i); end
for i from 1 to 5 do if i == 3 then break; end System.Print(i); end
@puleo1 puleo1 changed the title "return", "continue", "break" cause crashes in 2.1.1 "return", "continue", "break" cause scala errors in 2.1.1 Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant