aboutsummaryrefslogtreecommitdiff
path: root/src/type/check.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/type/check.rs')
-rw-r--r--src/type/check.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/type/check.rs b/src/type/check.rs
index f1c4a2b..b0311d1 100644
--- a/src/type/check.rs
+++ b/src/type/check.rs
@@ -348,13 +348,6 @@ impl SExp {
let opertype = (*op).infer_type(ctx.clone())?;
let argstype = (*l).infer_list_type(ctx)?;
- // makes [x] x
- let argstype = match argstype {
- List(v) if v.get(0).is_some() && v.get(1).is_none() =>
- v.get(0).unwrap().clone(),
- t => t,
- };
-
let conv_args = match (opertype.clone(), argstype.clone()) {
(Arrow(from, _), a) => match a.clone().convert(&*from) {
Ok(s) => Ok(s),