File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: cffdb66aa42b6c5a1d30a1b4364d65f409976202
2
+ refs/heads/master: 092af6fb764207693a01bb37ce4e38ddb8010e1e
Original file line number Diff line number Diff line change @@ -1200,6 +1200,21 @@ fn check_expr(&fn_ctxt fcx, @ast.expr expr) -> @ast.expr {
1200
1200
ast. ann_type ( t_1) ) ) ;
1201
1201
}
1202
1202
1203
+ case ( ast. expr_tup ( ?args, _) ) {
1204
+ let vec[ tup ( bool, @ast. expr ) ] args_1 = vec ( ) ;
1205
+ let vec[ tup ( bool, @ty) ] args_t = vec ( ) ;
1206
+
1207
+ for ( tup( bool , @ast. expr ) arg in args) {
1208
+ auto expr_1 = check_expr ( fcx, arg. _1 ) ;
1209
+ args_1 += tup ( arg. _0 , expr_1) ;
1210
+ args_t += tup ( arg. _0 , expr_ty ( expr_1) ) ;
1211
+ }
1212
+
1213
+ auto ann = ast. ann_type ( plain_ty ( ty_tup ( args_t) ) ) ;
1214
+ ret @fold. respan [ ast. expr_ ] ( expr. span ,
1215
+ ast. expr_tup ( args_1, ann) ) ;
1216
+ }
1217
+
1203
1218
case ( _) {
1204
1219
// TODO
1205
1220
ret expr;
You can’t perform that action at this time.
0 commit comments