fix bug in list repeat type

This commit is contained in:
Folkert 2021-02-07 02:08:17 +01:00
parent dc5eec189c
commit c3a681d1f0

View file

@ -701,7 +701,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
add_type(
Symbol::LIST_REPEAT,
top_level_function(
vec![nat_type(), flex(TVAR2)],
vec![nat_type(), flex(TVAR1)],
Box::new(list_type(flex(TVAR1))),
),
);