Move two fn assignability tests from compile-fail to run-pass

This commit is contained in:
Brian Anderson 2012-11-14 12:40:23 -08:00
parent 234df9cae0
commit 8336cad95d
2 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,6 @@ fn add(n: int) -> fn@(int) -> int {
fn main()
{
assert add(3)(4) == 7;
let add3 : fn(int)->int = add(3); //~ ERROR mismatched types
let add3 : fn(int)->int = add(3);
assert add3(4) == 7;
}

View File

@ -12,6 +12,6 @@ fn main()
let add2 : &(fn@(int)->int) = &add(2);
assert (*add2)(5) == 7;
let add3 : fn(int)->int = add(3); //~ ERROR mismatched types
let add3 : fn(int)->int = add(3);
assert add3(4) == 7;
}