diff --git a/grammar/src/expressions.grm b/grammar/src/expressions.grm index 9271140ad01..dbb3a9e7279 100644 --- a/grammar/src/expressions.grm +++ b/grammar/src/expressions.grm @@ -106,7 +106,6 @@ atomicExpression : "(" expression ")" : literalConstant : functionLiteral - : tupleLiteral : "this" label? : "super" ("<" type ">")? label? : if @@ -242,10 +241,6 @@ jump // yield ? ; -tupleLiteral - : "#" "(" (((SimpleName "=")? expression){","})? ")" - ; - // one can use "it" as a parameter name functionLiteral : "{" statements "}" diff --git a/grammar/src/types.grm b/grammar/src/types.grm index d198da53afb..22f9ec521a7 100644 --- a/grammar/src/types.grm +++ b/grammar/src/types.grm @@ -9,9 +9,6 @@ bq. See [Types] Foo, T, Object> // user type (A, Object) -> Foo // function type () -> Foo // function with no arguments -#(A, B, C) // tuple type -#(a : A, b : B) // tuple type with named entries -#() // 0-ary tuple type (Unit) */ @@ -24,7 +21,6 @@ typeDescriptor : selfType : functionType : userType - : tupleType : nullableType ; @@ -51,9 +47,4 @@ functionType : (type ".")? "(" (parameter | modifiers /*lazy out ref*/ type){","} ")" "->" type? ; -tupleType - : "#" "(" type{","}? ")" - : "#" "(" parameter{","} ")" // tuple with named entries, the names do not affect assignment compatibility - ; - //////////////////////////////////////// \ No newline at end of file