Skip to content

Commit ac0e5ea

Browse files
committed
Implement an untyped version of the AST, with a coversion back to the typed AST..
1 parent ebb16e6 commit ac0e5ea

File tree

2 files changed

+817
-0
lines changed

2 files changed

+817
-0
lines changed

src/comp/middle/typeck.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ fn ty_param_kinds_and_ty_for_def(fcx: &@fn_ctxt, sp: &span, defn: &ast::def)
113113
let no_kinds: [ast::kind] = ~[];
114114
alt defn {
115115
ast::def_arg(id) {
116+
116117
assert (fcx.locals.contains_key(id.node));
117118
let typ = ty::mk_var(fcx.ccx.tcx, lookup_local(fcx, sp, id.node));
118119
ret {kinds: no_kinds, ty: typ};

0 commit comments

Comments
 (0)