leo/tests/compiler/structs/duplicate_name_context.leo
2022-10-05 16:53:49 -07:00

19 lines
290 B
Plaintext

/*
namespace: Compile
expectation: Fail
input_file: input/dummy.in
*/
program test.aleo {
struct Bar {
b2: u32
}
function main(y: bool) -> bool {
const Bar: u32 = 66u32;
const k1: Bar = Bar { b2: 30u32 };
return y == true;
}
}