mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 03:04:13 +03:00
26 lines
339 B
Plaintext
26 lines
339 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
*/
|
|
|
|
function main() -> u8 {
|
|
return 1u8;
|
|
}
|
|
|
|
function foo(a: (u8, u16)) -> (u8, u16) {
|
|
return (1u8, 2u16);
|
|
}
|
|
|
|
function bar() -> (u8, (u16, u32)) {
|
|
return (1u8, (2u16, 3u32));
|
|
}
|
|
|
|
function baz() -> u8 {
|
|
for i: (u8, u16) in 0u8..2u8 {}
|
|
return 0u8;
|
|
}
|
|
|
|
circuit A {
|
|
mem: (u8, u16)
|
|
}
|