Skip to content

Commit

Permalink
Improve type sharing in kindcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanzab committed Aug 22, 2016
1 parent a3eed9b commit 4a05f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check/src/kindcheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl<'a> KindCheck<'a> {

fn kindcheck(&mut self, typ: &TcType) -> Result<(RcKind, TcType)> {
match **typ {
Type::Hole => Ok((self.subs.new_var(), Type::hole())),
Type::Hole => Ok((self.subs.new_var(), typ.clone())),
Type::Generic(ref gen) => {
let mut gen = gen.clone();
gen.kind = try!(self.find(&gen.id));
Expand Down

0 comments on commit 4a05f9a

Please sign in to comment.