mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
fix transitive imported aliases not being passed along
This commit is contained in:
parent
147ab87e9c
commit
45863769eb
1 changed files with 2 additions and 1 deletions
|
@ -209,7 +209,8 @@ fn start_phase<'a>(
|
|||
),
|
||||
Some(new) => {
|
||||
aliases.extend(new.iter().filter_map(|(s, (exposed, a))| {
|
||||
if *exposed {
|
||||
// only pass this on if it's exposed, or the alias is a transitive import
|
||||
if *exposed || s.module_id() != *imported {
|
||||
Some((*s, a.clone()))
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue