mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Two shadowing report tests
This commit is contained in:
parent
671eb0f32e
commit
d8511e3285
3 changed files with 109 additions and 25 deletions
|
@ -1326,7 +1326,14 @@ fn to_pending_def<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
Err(err) => panic!("TODO gracefully handle shadowing of type alias {:?}", err),
|
||||
Err((original_region, shadow)) => {
|
||||
env.problem(Problem::ShadowingInAnnotation {
|
||||
original_region,
|
||||
shadow,
|
||||
});
|
||||
|
||||
panic!("TODO gracefully handle shadowing of type alias {:?}", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue