2011-09-26 16:44:08 -05:00
|
|
|
|
2012-01-19 20:31:08 -06:00
|
|
|
enum bar { u(~int), w(int), }
|
2011-09-26 16:44:08 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
assert alt u(~10) {
|
2012-08-03 21:59:04 -05:00
|
|
|
u(a) => {
|
2011-12-22 19:53:53 -06:00
|
|
|
log(error, a);
|
2011-09-26 16:44:08 -05:00
|
|
|
*a
|
|
|
|
}
|
2012-08-03 21:59:04 -05:00
|
|
|
_ => { 66 }
|
2011-09-26 16:44:08 -05:00
|
|
|
} == 10;
|
|
|
|
}
|