提交 093a5372 编写于 作者: M Marek Safar 提交者: Andrew Jorgensen

[640699] Reduced compound expressions need explicit conversion too.

上级 fe1653ea
...@@ -654,6 +654,9 @@ namespace Mono.CSharp { ...@@ -654,6 +654,9 @@ namespace Mono.CSharp {
// Otherwise, if the selected operator is a predefined operator // Otherwise, if the selected operator is a predefined operator
// //
Binary b = source as Binary; Binary b = source as Binary;
if (b == null && source is ReducedExpression)
b = ((ReducedExpression) source).OriginalExpression as Binary;
if (b != null) { if (b != null) {
// //
// 2a. the operator is a shift operator // 2a. the operator is a shift operator
......
...@@ -1873,6 +1873,16 @@ namespace Mono.CSharp { ...@@ -1873,6 +1873,16 @@ namespace Mono.CSharp {
this.loc = orig_expr.Location; this.loc = orig_expr.Location;
} }
#region Properties
public Expression OriginalExpression {
get {
return orig_expr;
}
}
#endregion
// //
// Creates fully resolved expression switcher // Creates fully resolved expression switcher
// //
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册