mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
fix: uniqueness for Num types
This commit is contained in:
parent
aa4b376134
commit
d08757f161
4 changed files with 47 additions and 49 deletions
|
@ -367,7 +367,7 @@ pub fn binary64_type() -> SolvedType {
|
|||
}
|
||||
|
||||
#[inline(always)]
|
||||
fn binary64_alias_content() -> SolvedType {
|
||||
pub fn binary64_alias_content() -> SolvedType {
|
||||
single_private_tag(Symbol::NUM_AT_BINARY64, vec![])
|
||||
}
|
||||
|
||||
|
@ -597,7 +597,7 @@ pub fn dict_type(key: SolvedType, value: SolvedType) -> SolvedType {
|
|||
SolvedType::Apply(Symbol::DICT_DICT, vec![key, value])
|
||||
}
|
||||
|
||||
fn single_private_tag(symbol: Symbol, type_arguments: Vec<SolvedType>) -> SolvedType {
|
||||
pub fn single_private_tag(symbol: Symbol, type_arguments: Vec<SolvedType>) -> SolvedType {
|
||||
SolvedType::TagUnion(
|
||||
vec![(TagName::Private(symbol), type_arguments)],
|
||||
Box::new(SolvedType::EmptyTagUnion),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue