leo/tests/compiler/finalize/shadow_mapping_fail.leo

27 lines
384 B
Plaintext
Raw Normal View History

2022-09-07 20:39:00 +03:00
/*
namespace: Compile
expectation: Fail
*/
2022-10-06 02:53:49 +03:00
program test.aleo {
mapping bar: u8 => u8;
transition bar(a: u8) -> u8 {
return a + 1u8;
}
transition foo(bar: u8) -> u8 {
return bar + 1u8;
}
transition baz(a: u8) -> u8 {
let bar: u8 = a + 1u8;
return bar;
}
struct bar {
a: u64;
}
2022-09-07 20:39:00 +03:00
}