Kill some unused code
This commit is contained in:
parent
f825c87397
commit
daf9878020
@ -17,8 +17,9 @@ impl ReplState {
|
||||
format!("Evaluated AST: {:?}", ast)
|
||||
}
|
||||
|
||||
pub fn type_check(&mut self, ast: &AST) -> TypeCheck {
|
||||
TypeCheck::Error("type lol".to_string())
|
||||
pub fn type_check(&mut self, _ast: &AST) -> TypeCheck {
|
||||
//TypeCheck::Error("type lol".to_string())
|
||||
TypeCheck::OK
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -619,7 +619,7 @@ impl Parser {
|
||||
Colon => Some(self.type_anno()?),
|
||||
_ => None
|
||||
};
|
||||
if let Some(a) = expr_body.1 {
|
||||
if let Some(_) = expr_body.1 {
|
||||
return ParseError::new("Bad parse state");
|
||||
}
|
||||
expr_body.1 = type_anno;
|
||||
|
Loading…
Reference in New Issue
Block a user