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.
@@ -288,6 +288,12 @@ public BoundExpression Property(BoundExpression receiverOpt, PropertySymbol prop
returnCall(receiverOpt,property.GetMethod);// TODO: should we use property.GetBaseProperty().GetMethod to ensure we generate a call to the overridden method?
returnCall(receiverOpt,property.GetMethod,arg0);// TODO: should we use property.GetBaseProperty().GetMethod to ensure we generate a call to the overridden method?