2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
2012-01-19 18:10:31 -06:00
|
|
|
enum thing { a; b; c; }
|
2011-04-19 18:52:59 -05:00
|
|
|
|
2011-10-21 06:14:28 -05:00
|
|
|
fn foo(it: block(int)) { it(10); }
|
2011-04-19 18:52:59 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-07-27 07:19:39 -05:00
|
|
|
let x = true;
|
|
|
|
alt a {
|
2012-01-19 03:03:57 -06:00
|
|
|
a { x = true; foo {|_i|} }
|
|
|
|
b { x = false; }
|
|
|
|
c { x = false; }
|
2011-04-19 18:52:59 -05:00
|
|
|
}
|
2011-08-15 23:54:52 -05:00
|
|
|
}
|