BoundExpressionresult=CreateConversion(expr.Syntax,expr,conversion.ToArrayIndexConversion(),isCast:false,destination:type,diagnostics:attemptDiagnostics);// UNDONE: was cast?
BoundExpressionresult=CreateConversion(expr.Syntax,expr,conversion.WithArrayIndexConversion(true),isCast:false,destination:type,diagnostics:attemptDiagnostics);// UNDONE: was cast?
Debug.Assert(result!=null);// If this ever fails (it shouldn't), then put a null-check around the diagnostics update.