Adding i suffixes so cfail tests keep failing after suffix inference

This commit is contained in:
Lindsey Kuper 2012-06-18 13:41:52 -07:00
parent 567e4d9c6f
commit 85977ced3f
11 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
// error-pattern:expected `str` but found `int`
const i: str = 10;
const i: str = 10i;
fn main() { log(debug, i); }

View File

@ -1,4 +1,4 @@
fn f() -> ! {
3 //! ERROR expected `_|_` but found `int`
3i //! ERROR expected `_|_` but found `int`
}
fn main() { }

View File

@ -1,3 +1,3 @@
// error-pattern:mismatched types
fn main() { let x = if true { 10 } else { 10u }; }
fn main() { let x = if true { 10i } else { 10u }; }

View File

@ -1,7 +1,7 @@
// Regression test for issue #1362 - without that fix the span will be bogus
// no-reformat
fn main() {
let x: uint = 20; //! ERROR mismatched types
let x: uint = 20i; //! ERROR mismatched types
}
// NOTE: Do not add any extra lines as the line number the error is
// on is significant; an error later in the source file might not

View File

@ -1,5 +1,5 @@
// Regresion test for issue #1448 and #1386
fn main() {
#debug["%u", 10]; //! ERROR mismatched types
#debug["%u", 10i]; //! ERROR mismatched types
}

View File

@ -1,6 +1,6 @@
fn g() -> ! { fail; }
fn f() -> ! {
ret 42; //! ERROR expected `_|_` but found `int`
ret 42i; //! ERROR expected `_|_` but found `int`
g(); //! WARNING unreachable statement
}
fn main() { }

View File

@ -4,7 +4,7 @@ fn forever() -> ! {
loop {
break;
}
ret 42; //! ERROR expected `_|_` but found `int`
ret 42i; //! ERROR expected `_|_` but found `int`
}
fn main() {

View File

@ -2,7 +2,7 @@
fn main() {
let a = {foo: 0};
let a = {foo: 0i};
let b = {foo: true with a};
}

View File

@ -30,7 +30,7 @@ fn nested(x: &x.int) { // (1)
let b: &x.int = foo(x, a) { |_x, _y, z| z };
let c: &x.int = foo(a, a) { |_x, _y, z| z };
let z = 3;
let z = 3i;
let d: &x.int = foo(x, x) { |_x, _y, z| z };
let e: &x.int = foo(x, &z) { |_x, _y, z| z };
let f: &x.int = foo(&z, &z) { |_x, _y, z| z }; //! ERROR mismatched types: expected `&x.int` but found

View File

@ -2,4 +2,4 @@
// error-pattern:mismatched types: expected `bool`
// error-pattern:mismatched types: expected `int`
fn main() { let a: bool = 1; let b: int = true; }
fn main() { let a: bool = 1i; let b: int = true; }

View File

@ -2,7 +2,7 @@
// issue #367
fn f() {
let v = [1];
let v = [1i];
log(debug, v.some_field_name); //type error
}