BoundExpressionresult=CreateConversion(expr.Syntax,expr,conversion,isCast:false,conversionGroupOpt:null,destination:type,diagnostics:attemptDiagnostics);// UNDONE: was cast?
BoundExpressionresult=CreateConversion(expr.Syntax,expr,conversion,isCast:false,conversionGroupOpt:null,destination:targetType,diagnostics);// UNDONE: was cast?
Debug.Assert(result!=null);// If this ever fails (it shouldn't), then put a null-check around the diagnostics update.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.