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

Re-assignment of captured pattern in Case-Statement #2

Open
bezirg opened this issue Feb 13, 2016 · 0 comments
Open

Re-assignment of captured pattern in Case-Statement #2

bezirg opened this issue Feb 13, 2016 · 0 comments

Comments

@bezirg
Copy link
Member

bezirg commented Feb 13, 2016

Example:

{ 
  Int x = 3;
  case x {
     y => {  y = y+4; // modification of captured not allowed
             println(toString(y)); }
  }
}
@bezirg bezirg changed the title CaseStatement: Mutation of captured pattern not allowed Re-assignment of captured pattern in Case-Statement Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant