type inference for pattern guards

This commit is contained in:
Folkert 2020-03-21 00:39:52 +01:00
parent 655dc32098
commit 920928399a
9 changed files with 230 additions and 57 deletions

View file

@ -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)
}