leo/tests/compiler/finalize/shadow_mapping_fail.leo
2022-10-05 16:53:49 -07:00

27 lines
384 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
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;
}
}