mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Add SetTypeSpec
This commit is contained in:
parent
3112fb31a9
commit
2cf4b5aba8
6 changed files with 85 additions and 12 deletions
|
@ -1304,7 +1304,9 @@ impl Context {
|
|||
) -> Option<impl Iterator<Item = (&'a Type, &'a Context)>> {
|
||||
let (_ctx_t, ctx) = self.get_nominal_type_ctx(t)?;
|
||||
Some(ctx.super_traits.iter().map(|sup| {
|
||||
let (_t, sup_ctx) = self.get_nominal_type_ctx(sup).unwrap();
|
||||
let (_t, sup_ctx) = self
|
||||
.get_nominal_type_ctx(sup)
|
||||
.unwrap_or_else(|| todo!("{} not found", sup));
|
||||
(sup, sup_ctx)
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue