mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-26 02:53:08 +03:00
support nested tuple types
This commit is contained in:
parent
a0195c3180
commit
79846ab565
@ -197,7 +197,7 @@ type_circuit = { identifier }
|
||||
// Declared in types/array_type.rs
|
||||
type_array = { type_data ~ ("[" ~ number_positive ~ "]")+ }
|
||||
|
||||
type_tuple = _{ "(" ~ type_ ~ ("," ~ type_)+ ~ ")" }
|
||||
type_tuple = _{ "(" ~ type_ ~ ("," ~ (type_tuple | type_))+ ~ ")" }
|
||||
|
||||
/// Values
|
||||
|
||||
|
@ -90,11 +90,11 @@ fn test_nested_access() {
|
||||
assert_satisfied(program);
|
||||
}
|
||||
|
||||
// #[test]
|
||||
// fn test_nested_typed() {
|
||||
// let program_bytes = include_bytes!("nested_typed.leo");
|
||||
//
|
||||
// let program = parse_program(program_bytes).unwrap();
|
||||
//
|
||||
// assert_satisfied(program);
|
||||
// }
|
||||
#[test]
|
||||
fn test_nested_typed() {
|
||||
let program_bytes = include_bytes!("nested_typed.leo");
|
||||
|
||||
let program = parse_program(program_bytes).unwrap();
|
||||
|
||||
assert_satisfied(program);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user