mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
add comment
This commit is contained in:
parent
6380a9edf9
commit
9f11245b22
1 changed files with 5 additions and 0 deletions
|
@ -1707,6 +1707,11 @@ fn instantiate_rigids(
|
|||
annotation.substitute(&rigid_substitution);
|
||||
}
|
||||
|
||||
// TODO investigate when we can skip this. It seems to only be required for correctness
|
||||
// for recursive functions. For non-recursive functions the final type is correct, but
|
||||
// alias information is sometimes lost
|
||||
//
|
||||
// Skipping all of this cloning here would be neat!
|
||||
let loc_annotation_ref = Loc::at(loc_pattern.region, &annotation);
|
||||
if let Pattern::Identifier(symbol) = loc_pattern.value {
|
||||
headers.insert(symbol, Loc::at(loc_pattern.region, annotation.clone()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue