mirror of
https://github.com/AleoHQ/leo.git
synced 2025-01-02 06:50:13 +03:00
753aa8f4a2
- hacked WHITESPACE tag in Pest to treat NEWLINE as a WHITESPACE - all the NEWLINES removed (!!!) - console.log and member access tbd
55 lines
663 B
Plaintext
55 lines
663 B
Plaintext
// adding multiline support for Leo
|
|
// all the code in this file should compile just fine
|
|
|
|
circuit BipBop {
|
|
bip
|
|
:
|
|
u32,
|
|
|
|
bop
|
|
: u32,
|
|
|
|
blup :
|
|
u32,
|
|
|
|
function gimme_five() -> Self {
|
|
return Self {
|
|
bip: 1,
|
|
bop: 2,
|
|
blup: 3
|
|
}
|
|
}
|
|
|
|
function main() -> (
|
|
u32
|
|
,
|
|
u64
|
|
) {
|
|
return (
|
|
100
|
|
,
|
|
1000
|
|
)
|
|
}
|
|
}
|
|
|
|
function main() -> (
|
|
u32
|
|
,
|
|
u64
|
|
) {
|
|
let
|
|
a
|
|
: u32
|
|
= 100
|
|
;
|
|
|
|
let b : (
|
|
u32,
|
|
u64
|
|
) = BipBop::gimme_five().main();
|
|
|
|
console.assert(true);
|
|
}
|
|
|