mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
fix most type inference issues
This commit is contained in:
parent
9b83c3ad58
commit
d931c8994a
10 changed files with 273 additions and 49 deletions
|
@ -46,6 +46,7 @@ impl Procedure {
|
|||
pub struct References {
|
||||
pub bound_symbols: ImSet<Symbol>,
|
||||
pub lookups: ImSet<Symbol>,
|
||||
pub referenced_aliases: ImSet<Symbol>,
|
||||
pub calls: ImSet<Symbol>,
|
||||
}
|
||||
|
||||
|
@ -58,6 +59,7 @@ impl References {
|
|||
self.lookups = self.lookups.union(other.lookups);
|
||||
self.calls = self.calls.union(other.calls);
|
||||
self.bound_symbols = self.bound_symbols.union(other.bound_symbols);
|
||||
self.referenced_aliases = self.referenced_aliases.union(other.referenced_aliases);
|
||||
|
||||
self
|
||||
}
|
||||
|
@ -66,6 +68,7 @@ impl References {
|
|||
self.lookups.extend(other.lookups);
|
||||
self.calls.extend(other.calls);
|
||||
self.bound_symbols.extend(other.bound_symbols);
|
||||
self.referenced_aliases.extend(other.referenced_aliases);
|
||||
}
|
||||
|
||||
pub fn has_lookup(&self, symbol: Symbol) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue