mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Make sure ability defs that are possibly recursive are marked as such
This commit is contained in:
parent
0525c6d616
commit
75ce40c67d
4 changed files with 18 additions and 2 deletions
|
@ -348,6 +348,10 @@ impl Scope {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn get_member_shadow(&self, ability_member: Symbol) -> Option<&Loc<Symbol>> {
|
||||
self.shadows.get(&ability_member)
|
||||
}
|
||||
|
||||
/// Create a new symbol, but don't add it to the scope (yet)
|
||||
///
|
||||
/// Used for record guards like { x: Just _ } where the `x` is not added to the scope,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue