Changed the type of parameter in FunctionType ctor from generic Expression to TupleLiteral to match the grammar (#1272)

This commit is contained in:
pk19604014
2022-05-20 17:36:17 -07:00
committed by GitHub
parent 8dd398807d
commit cdc9428984
9 changed files with 31 additions and 40 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ static auto ExpressionToProto(const Expression& expression)
const auto& fun_type = cast<FunctionTypeLiteral>(expression);
auto* fun_type_proto = expression_proto.mutable_function_type();
*fun_type_proto->mutable_parameter() =
ExpressionToProto(fun_type.parameter());
TupleLiteralExpressionToProto(fun_type.parameter());
*fun_type_proto->mutable_return_type() =
ExpressionToProto(fun_type.return_type());
break;