adjust &list.pop return type to match actual return type

This commit is contained in:
Mark 2023-10-27 14:45:37 +02:00
parent 6618a4c00d
commit 3b179ba2d4

View File

@ -38,7 +38,10 @@ impl Config {
).into()); ).into());
} }
} }
Ok(out) Ok(Type::newm(vec![
Arc::new(Type::new(data::tuple::TupleT(vec![out]))),
Arc::new(Type::empty_tuple())
]))
} else { } else {
return Err(format!("pop: not a reference: {a}").into()); return Err(format!("pop: not a reference: {a}").into());
} }