Temporarily disable type-erroring
and tighten some code
This commit is contained in:
parent
f7659a5598
commit
c285ee182e
@ -167,11 +167,9 @@ impl<'a> State<'a> {
|
|||||||
use self::ValueEntry::*;
|
use self::ValueEntry::*;
|
||||||
match self.values.get(&name) {
|
match self.values.get(&name) {
|
||||||
None => return Err(format!("Value {} not found", *name)),
|
None => return Err(format!("Value {} not found", *name)),
|
||||||
Some(lookup) => {
|
Some(lookup) => match lookup {
|
||||||
match lookup {
|
&Binding { ref val } => Ok(val.clone()),
|
||||||
&Binding { ref val } => Ok(val.clone()),
|
&Function { .. } => Ok(FullyEvaluatedExpr::FuncLit(name.clone()))
|
||||||
&Function { .. } => Ok(FullyEvaluatedExpr::FuncLit(name.clone()))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -75,8 +75,10 @@ impl ProgrammingLanguageInterface for Schala {
|
|||||||
},
|
},
|
||||||
Err(msg) => {
|
Err(msg) => {
|
||||||
output.add_artifact(TraceArtifact::new("type_check", msg));
|
output.add_artifact(TraceArtifact::new("type_check", msg));
|
||||||
|
/*
|
||||||
output.add_output(format!("Type error"));
|
output.add_output(format!("Type error"));
|
||||||
return output;
|
return output;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user