mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Do not attempt to handle aliasing of procs in variable assignments
Please see the comment in the diff to explain the rationale of this change. Closes #4636
This commit is contained in:
parent
2dfe0276e4
commit
68e364d897
10 changed files with 119 additions and 31 deletions
|
@ -1387,7 +1387,12 @@ impl<'a> LambdaSet<'a> {
|
|||
where
|
||||
I: Interner<'a, Layout<'a>>,
|
||||
{
|
||||
debug_assert!(self.contains(function_symbol), "function symbol not in set");
|
||||
debug_assert!(
|
||||
self.contains(function_symbol),
|
||||
"function symbol {:?} not in set {:?}",
|
||||
function_symbol,
|
||||
self
|
||||
);
|
||||
|
||||
let comparator = |other_name: Symbol, other_captures_layouts: &[Layout]| {
|
||||
other_name == function_symbol
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue