mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Try to recover from LookupNotInScope until the error is reported
This commit is contained in:
parent
4265b7b58e
commit
bb5b733de4
2 changed files with 38 additions and 15 deletions
|
@ -271,10 +271,20 @@ impl<'a> Context<'a> {
|
|||
fn get_var_info(&self, symbol: Symbol) -> VarInfo {
|
||||
match self.vars.get(&symbol) {
|
||||
Some(info) => *info,
|
||||
None => panic!(
|
||||
"Symbol {:?} {} has no info in {:?}",
|
||||
symbol, symbol, self.vars
|
||||
),
|
||||
None => {
|
||||
eprintln!(
|
||||
"Symbol {:?} {} has no info in self.vars",
|
||||
symbol,
|
||||
symbol, // self.vars
|
||||
);
|
||||
|
||||
VarInfo {
|
||||
persistent: true,
|
||||
reference: false,
|
||||
consume: false,
|
||||
reset: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue