From 183311b872406e1928851a29a953c07954653297 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Mon, 18 Aug 2025 13:56:58 +0300 Subject: fix: refined [x] to x conversion, think (not true) and (vector 1) --- src/type/check.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/type/check.rs') 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), -- cgit v1.2.3