Changed some commented out type signatures from List a to List elem

This commit is contained in:
Chad Stearns 2020-06-21 13:30:49 -04:00
parent 7125af2493
commit 3af1632ede
2 changed files with 3 additions and 3 deletions

View file

@ -498,7 +498,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
),
);
// push : List a -> a -> List a
// push : List elem -> elem -> List elem
add_type(
Symbol::LIST_PUSH,
SolvedType::Func(
@ -513,7 +513,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
SolvedType::Func(vec![flex(TVAR1)], Box::new(list_type(flex(TVAR1)))),
);
// repeat : Int, a -> List a
// repeat : Int, elem -> List elem
add_type(
Symbol::LIST_REPEAT,
SolvedType::Func(