2011-08-26 02:46:53 -05:00
|
|
|
use std;
|
|
|
|
|
2011-09-02 17:34:58 -05:00
|
|
|
pure fn p(x: int) -> bool { true }
|
2011-08-26 02:46:53 -05:00
|
|
|
|
2011-09-02 17:34:58 -05:00
|
|
|
fn f(x: int) : p(x) { }
|
2011-08-26 02:46:53 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-09-02 17:34:58 -05:00
|
|
|
alt some(5) { some(y) { check (p(y)); f(y); } _ { fail "yuck"; } }
|
2011-08-26 02:46:53 -05:00
|
|
|
}
|