Allow unit files to reference already loaded ones

This commit is contained in:
Tiffany Bennett 2016-10-11 12:47:26 -04:00
parent 716efc2edf
commit 7c8fa3dc1d

View file

@ -108,9 +108,7 @@ impl Context {
match *expr {
Expr::Unit(ref name) => {
let name = self.intern(name);
if self.lookup(&name).is_none() {
println!("Lookup failed: {}", name);
}
let _ = self.lookup(&name);
},
Expr::Frac(ref left, ref right) |
Expr::Pow(ref left, ref right) |