Test case for checks on pattern-bound vars

This commit is contained in:
Tim Chevalier 2011-08-26 00:46:53 -07:00
parent 26e1cacb21
commit 844e2d7d1c

View file

@ -0,0 +1,16 @@
use std;
import std::option::*;
pure fn p(x:int) -> bool { true }
fn f(x:int) : p(x) { }
fn main() {
alt some(5) {
some(y) {
check p(y);
f(y);
}
_ { fail "yuck"; }
}
}