Two shadowing report tests

This commit is contained in:
Chad Stearns 2020-04-05 15:19:43 -04:00
parent 671eb0f32e
commit d8511e3285
3 changed files with 109 additions and 25 deletions

View file

@ -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)
}
}
}