Skip to content

Instantly share code, notes, and snippets.

@eseidelGoogle
Created March 28, 2022 15:59
Show Gist options
  • Save eseidelGoogle/cbdec4750cae0edda85029d894c804d5 to your computer and use it in GitHub Desktop.
Save eseidelGoogle/cbdec4750cae0edda85029d894c804d5 to your computer and use it in GitHub Desktop.
named break used incorrectly?
enum Thing {
one,
two,
}
void main() {
var thing = Thing.one;
goback:
switch (thing) {
case Thing.one:
print("one");
thing = Thing.two;
break goback;
case Thing.two:
print("two");
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment