Skip to content

Commit

Permalink
fix(base): Don't forget the ForAll type when calling walk_move_type
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwes committed Nov 1, 2017
1 parent 804afb9 commit 7b78bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1759,7 +1759,7 @@ where
I: Clone,
{
match *typ {
Type::Forall(_, ref typ) => f.visit(typ),
Type::Forall(ref args, ref typ) => f.visit(typ).map(|typ| Type::forall(args.clone(), typ)),
Type::App(ref id, ref args) => {
let new_args = walk_move_types(args, |t| f.visit(t));
merge(id, f.visit(id), args, new_args, Type::app)
Expand Down

0 comments on commit 7b78bd7

Please sign in to comment.