提交 1d7fd671 编写于 作者: M Manish Vasani

Address feedback: tuples cannot have constant value

上级 b74f0653
......@@ -1197,7 +1197,7 @@ private ITupleExpression CreateBoundTupleExpressionOperation(BoundTupleExpressio
Lazy<ImmutableArray<IOperation>> elements = new Lazy<ImmutableArray<IOperation>>(() => boundTupleExpression.Arguments.SelectAsArray(element => Create(element)));
SyntaxNode syntax = boundTupleExpression.Syntax;
ITypeSymbol type = boundTupleExpression.Type;
Optional<object> constantValue = ConvertToOptional(boundTupleExpression.ConstantValue);
Optional<object> constantValue = default(Optional<object>);
return new LazyTupleExpression(elements, syntax, type, constantValue);
}
......
......@@ -1015,7 +1015,7 @@ Namespace Microsoft.CodeAnalysis.Semantics
Dim elements As New Lazy(Of ImmutableArray(Of IOperation))(Function() boundTupleExpression.Arguments.SelectAsArray(Function(element) Create(element)))
Dim syntax As SyntaxNode = boundTupleExpression.Syntax
Dim type As ITypeSymbol = boundTupleExpression.Type
Dim constantValue As [Optional](Of Object) = ConvertToOptional(boundTupleExpression.ConstantValueOpt)
Dim constantValue As [Optional](Of Object) = Nothing
Return New LazyTupleExpression(elements, syntax, type, constantValue)
End Function
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册