mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-22 00:51:33 +03:00
21 lines
244 B
Plaintext
21 lines
244 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
input_file: input/dummy.in
|
|
*/
|
|
|
|
circuit Foo {
|
|
x: u32;
|
|
|
|
function new() -> Self {
|
|
let new: Self = Self {
|
|
x: 1u32
|
|
};
|
|
|
|
return new;
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
let foo: Self = Foo::new();
|
|
} |