1
Fork 0

Port the tests to the decl foo<T> syntax.

This commit is contained in:
Erick Tryzelaar 2011-08-12 06:37:25 -07:00 committed by Graydon Hoare
parent 4abc471390
commit 3520499544
86 changed files with 161 additions and 161 deletions

View file

@ -1,8 +1,8 @@
fn fix_help[A, B](f: @fn(@fn(&A) -> B , &A) -> B , x: &A) -> B {
fn fix_help<A, B>(f: @fn(@fn(&A) -> B , &A) -> B , x: &A) -> B {
ret f(@bind fix_help(f, _), x);
}
fn fix[A, B](f: @fn(@fn(&A) -> B , &A) -> B ) -> @fn(&A) -> B {
fn fix<A, B>(f: @fn(@fn(&A) -> B , &A) -> B ) -> @fn(&A) -> B {
ret @bind fix_help(f, _);
}
@ -15,4 +15,4 @@ fn main() {
let fact = fix(@fact_);
assert (fact(5) == 120);
assert (fact(2) == 2);
}
}