Skip to content

Commit 978f225

Browse files
committed
---
yaml --- r: 1378 b: refs/heads/master c: 6393a34 h: refs/heads/master v: v3
1 parent 791943b commit 978f225

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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: 0043f99f8388ce0df316d7193a00b63d200c2a07
2+
refs/heads/master: 6393a34e6e4cfc7638d698353659643e63549532

trunk/src/comp/middle/typeck.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,8 @@ fn check_expr(&@fn_ctxt fcx, @ast.expr expr) -> @ast.expr {
12531253
}
12541254
case (ast.def_variant(_, ?variant_id)) {
12551255
check (fcx.ccx.item_types.contains_key(variant_id));
1256-
t = fcx.ccx.item_types.get(variant_id);
1256+
t = generalize_ty(fcx.ccx,
1257+
fcx.ccx.item_types.get(variant_id));
12571258
}
12581259
case (ast.def_binding(?id)) {
12591260
check (fcx.locals.contains_key(id));

0 commit comments

Comments
 (0)