make things compile, base64 has a memory leak

This commit is contained in:
Folkert 2021-10-06 22:57:11 +02:00
parent c6a8bdfdbe
commit 94e8c62613
12 changed files with 99 additions and 104 deletions

View file

@ -793,7 +793,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
list_type(flex(TVAR1)),
flex(TVAR2),
closure(
vec![flex(TVAR1), flex(TVAR2)],
vec![flex(TVAR2), flex(TVAR1)],
TVAR3,
Box::new(until_type(flex(TVAR2))),
),
@ -1173,13 +1173,13 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
Box::new(set_type(flex(TVAR1))),
);
// Set.walk : Set a, (a, b -> b), b -> b
// Set.walk : Set a, (b, a -> b), b -> b
add_top_level_function_type!(
Symbol::SET_WALK,
vec![
set_type(flex(TVAR1)),
closure(vec![flex(TVAR1), flex(TVAR2)], TVAR3, Box::new(flex(TVAR2))),
flex(TVAR2),
closure(vec![flex(TVAR2), flex(TVAR1)], TVAR3, Box::new(flex(TVAR2))),
],
Box::new(flex(TVAR2)),
);