diff --git a/crates/parser/src/grammar.pest b/crates/parser/src/grammar.pest index 9a46e40..9451996 100644 --- a/crates/parser/src/grammar.pest +++ b/crates/parser/src/grammar.pest @@ -97,7 +97,7 @@ generics = { "<" ~ (generic ~ ("," ~ generic)*)? ~ ">" } // ====================================================== tuple_type = { - "[" ~ (type_expr ~ ("," ~ type_expr)*)? ~ ","? ~ "]" + "(" ~ (type_expr ~ ("," ~ type_expr)*)? ~ ","? ~ ")" } path_type = { @@ -142,11 +142,11 @@ multi_pat_template = _{ } tuple_pattern = { - "[" ~ (pattern | etc_pattern) ~ "," ~ multi_pat_template ~ "]" + "(" ~ (pattern | etc_pattern) ~ "," ~ multi_pat_template ~ ")" } named_tuple_pattern = { - static_path ~ "[" ~ multi_pat_template ~ "]" + static_path ~ "(" ~ multi_pat_template ~ ")" } struct_destruct = { diff --git a/mist-test/src/main.mist b/mist-test/src/main.mist index c6bc7b1..259dd4a 100644 --- a/mist-test/src/main.mist +++ b/mist-test/src/main.mist @@ -1,5 +1,3 @@ -fn Result<[], String> main() { +fn void main() { println!("running common tests..."); - - Ok(()) }