mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
chore: add ConstExpr::map
This commit is contained in:
parent
3066781092
commit
7c2d6ac59a
3 changed files with 101 additions and 5 deletions
|
@ -1899,7 +1899,8 @@ impl Context {
|
|||
Err((tp, errs))
|
||||
}
|
||||
}
|
||||
other => type_feature_error!(
|
||||
ast::ConstExpr::Dummy(_) => Ok(TyParam::Failure),
|
||||
other @ ast::ConstExpr::Def(_) => type_feature_error!(
|
||||
self,
|
||||
other.loc(),
|
||||
&format!("instantiating const expression {other}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue