edlang/simple.ed

19 lines
196 B
Plaintext
Raw Normal View History

2023-05-27 15:14:48 +00:00
struct Hello {
x: i32,
y: i32,
}
fn test(x: Hello) {
return;
}
fn works(x: i32) -> i32 {
return x * 4;
}
fn main() -> i32 {
let y = 2;
let z = y;
return works(z);
2023-05-14 16:11:38 +00:00
}