Enum grammar

This commit is contained in:
2026-05-07 20:59:15 +02:00
parent a9fdfe4100
commit 5eeaf8c35d
2 changed files with 17 additions and 1 deletions
+6
View File
@@ -9,3 +9,9 @@ class MyClass {
println!("{}", self.message);
}
}
enum MyEnum {
Named,
Tuple(i32, String),
Struct { i32 x }
}