add new layer to the Num types

This commit is contained in:
rvcas 2020-12-18 16:41:24 -05:00
parent 4d692af639
commit aa4b376134
10 changed files with 441 additions and 92 deletions

View file

@ -1219,7 +1219,7 @@ fn float_type(u: VarId) -> SolvedType {
Vec::new(),
Box::new(builtin_aliases::num_type(SolvedType::Apply(
Symbol::ATTR_ATTR,
vec![flex(u), builtin_aliases::floatingpoint_type()],
vec![flex(u), builtin_aliases::float_type()],
))),
),
],
@ -1237,7 +1237,7 @@ fn int_type(u: VarId) -> SolvedType {
Vec::new(),
Box::new(builtin_aliases::num_type(SolvedType::Apply(
Symbol::ATTR_ATTR,
vec![flex(u), builtin_aliases::integer_type()],
vec![flex(u), builtin_aliases::int_type()],
))),
),
],