X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FMicrosoft.CSharp%2FMicrosoft.CSharp.RuntimeBinder%2FCSharpBinaryOperationBinder.cs;h=374eb0d961fed72ceff5c2ef0787de206da91593;hb=b50017eba3a83ecbb495f4c698531696df043b78;hp=a59a09c80c425a8d8b2eea680f715da791123456;hpb=1b2d2d3e6ca815ce38f3989aa3f205fa99a6936d;p=mono.git diff --git a/mcs/class/Microsoft.CSharp/Microsoft.CSharp.RuntimeBinder/CSharpBinaryOperationBinder.cs b/mcs/class/Microsoft.CSharp/Microsoft.CSharp.RuntimeBinder/CSharpBinaryOperationBinder.cs index a59a09c80c4..374eb0d961f 100644 --- a/mcs/class/Microsoft.CSharp/Microsoft.CSharp.RuntimeBinder/CSharpBinaryOperationBinder.cs +++ b/mcs/class/Microsoft.CSharp/Microsoft.CSharp.RuntimeBinder/CSharpBinaryOperationBinder.cs @@ -139,10 +139,10 @@ namespace Microsoft.CSharp.RuntimeBinder Compiler.Expression expr; if (is_compound) { - var target_expr = ctx.CreateCompilerExpression (argumentInfo[0], target); - expr = new Compiler.CompoundAssign (oper, target_expr, right, left, Compiler.Location.Null); + var target_expr = new Compiler.RuntimeValueExpression (target, ctx.ImportType (target.LimitType)); + expr = new Compiler.CompoundAssign (oper, target_expr, right, left); } else { - expr = new Compiler.Binary (oper, left, right, Compiler.Location.Null); + expr = new Compiler.Binary (oper, left, right); } expr = new Compiler.Cast (new Compiler.TypeExpression (ctx.ImportType (ReturnType), Compiler.Location.Null), expr, Compiler.Location.Null);