File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: a99713265baca22050e1ab4994feaa70ac31667b
2
+ refs/heads/master: 91809a17ac462e714e87b0150c0c525e52f69556
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ fn ast_ty_to_ty(ty_getter getter, &@ast.ty ast_ty) -> @ty.t {
108
108
109
109
case ( ast. ty_fn ( ?inputs, ?output) ) {
110
110
auto f = bind ast_arg_to_arg ( getter, _) ;
111
- auto i = _vec. map [ rec ( ast. mode mode , @ast . ty ty ) , arg] ( f, inputs) ;
111
+ auto i = _vec. map [ ast. ty_arg , arg] ( f, inputs) ;
112
112
sty = ty. ty_fn ( i, ast_ty_to_ty ( getter, output) ) ;
113
113
}
114
114
@@ -134,8 +134,18 @@ fn ast_ty_to_ty(ty_getter getter, &@ast.ty ast_ty) -> @ty.t {
134
134
cname = t0. cname ;
135
135
}
136
136
137
- case ( _) {
138
- fail;
137
+ case ( ast. ty_obj ( ?meths) ) {
138
+ let vec[ ty. method ] tmeths = vec ( ) ;
139
+ auto f = bind ast_arg_to_arg ( getter, _) ;
140
+ for ( ast. ty_method m in meths) {
141
+ auto ins = _vec. map[ ast. ty_arg, arg] ( f, m. inputs) ;
142
+ auto out = ast_ty_to_ty( getter, m. output) ;
143
+ append[ ty. method] ( tmeths,
144
+ rec( ident=m. ident,
145
+ inputs=ins,
146
+ output=out) ) ;
147
+ }
148
+ sty = ty. ty_obj( tmeths) ;
139
149
}
140
150
}
141
151
You can’t perform that action at this time.
0 commit comments