leo/tests/compiler/char/circuit.leo

19 lines
298 B
Plaintext

/*
namespace: Compile
expectation: Fail
input_file:
- inputs/ascii.in
- inputs/escaped_unicode.in
- inputs/escaped.in
- inputs/hex.in
- inputs/unicode.in
*/
circuit Foo {
character: char;
}
function main(character: char) -> char {
let f = Foo { character };
return f.character;
}