cl-ast: Allow c-like enums to take an expr

This commit is contained in:
2025-05-05 02:22:50 -04:00
parent fc80be5fcc
commit d6c0a6cf1b
4 changed files with 7 additions and 10 deletions

View File

@@ -183,7 +183,7 @@ pub struct Variant {
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub enum VariantKind {
Plain,
CLike(u128),
CLike(Box<Expr>),
Tuple(Ty),
Struct(Vec<StructMember>),
}