2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
2011-04-19 18:52:59 -05:00
|
|
|
tag thing { a; b; c; }
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
iter foo() -> int { put 10; }
|
2011-04-19 18:52:59 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-06-15 13:19:50 -05:00
|
|
|
auto x = true;
|
2011-04-19 18:52:59 -05:00
|
|
|
alt (a) {
|
2011-06-15 13:19:50 -05:00
|
|
|
case (a) { x = true; for each (int i in foo()) { } }
|
|
|
|
case (b) { x = false; }
|
|
|
|
case (c) { x = false; }
|
2011-04-19 18:52:59 -05:00
|
|
|
}
|
2011-06-15 13:19:50 -05:00
|
|
|
}
|