Skip to content

Commit e43b6b1

Browse files
committed
---
yaml --- r: 3644 b: refs/heads/master c: 0eac640 h: refs/heads/master v: v3
1 parent d5e401a commit e43b6b1

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 05954f37b76e6357fe8c162008176b3477e7b5a8
2+
refs/heads/master: 0eac640fdd56caa93d5f398a75d24e62feef4730

trunk/src/comp/middle/typeck.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,8 +2120,8 @@ fn check_expr(&@fn_ctxt fcx, &@ast::expr expr) {
21202120
auto found = false;
21212121
for (ty::field bf in base_fields) {
21222122
if (str::eq(f.ident, bf.ident)) {
2123-
demand::simple(fcx, expr.span, f.mt.ty,
2124-
bf.mt.ty);
2123+
demand::simple(fcx, expr.span, bf.mt.ty,
2124+
f.mt.ty);
21252125
found = true;
21262126
}
21272127
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// xfail-stage0
2+
// error-pattern:expected int but found bool
3+
4+
fn main() {
5+
6+
auto a = rec(foo = 0);
7+
8+
auto b = rec(foo = true with a);
9+
}

0 commit comments

Comments
 (0)