mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-09 09:38:24 +00:00
19 lines
196 B
Plaintext
19 lines
196 B
Plaintext
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);
|
|
}
|