mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
type inference for pattern guards
This commit is contained in:
parent
655dc32098
commit
920928399a
9 changed files with 230 additions and 57 deletions
|
@ -63,6 +63,11 @@ impl References {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn union_mut(&mut self, other: References) {
|
||||
self.lookups.extend(other.lookups);
|
||||
self.calls.extend(other.calls);
|
||||
}
|
||||
|
||||
pub fn has_lookup(&self, symbol: Symbol) -> bool {
|
||||
self.lookups.contains(&symbol)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue