syntax update: the default value of ConstParam turned from Expr into ConstArg

This commit is contained in:
ponyii 2023-07-10 17:56:07 +04:00
parent 52b4392724
commit 4ebdc6f052
14 changed files with 48 additions and 37 deletions

View file

@ -307,7 +307,7 @@ impl GenericParams {
let param = ConstParamData {
name,
ty: Interned::new(ty),
default: ConstRef::from_default_param_value(lower_ctx, const_param),
default: ConstRef::from_const_param(lower_ctx, const_param),
};
let idx = self.type_or_consts.alloc(param.into());
add_param_attrs(idx.into(), ast::GenericParam::ConstParam(const_param));