diff --git a/src/Compilers/CSharp/Portable/Lowering/LambdaRewriter/ExpressionLambdaRewriter.cs b/src/Compilers/CSharp/Portable/Lowering/LambdaRewriter/ExpressionLambdaRewriter.cs index 15ad893e6fc9881a720d1d60c23abe2900c2297d..18d4940e3747f2a6281ca408962392cc662495cf 100644 --- a/src/Compilers/CSharp/Portable/Lowering/LambdaRewriter/ExpressionLambdaRewriter.cs +++ b/src/Compilers/CSharp/Portable/Lowering/LambdaRewriter/ExpressionLambdaRewriter.cs @@ -408,7 +408,7 @@ private BoundExpression PromoteEnumOperand(BoundExpression operand, BoundExpress if (literal != null) { // for compat reasons enum literals are directly promoted into underlying values - return Visit(literal.Update(literal.ConstantValue, promotedType)); + return Constant(literal.Update(literal.ConstantValue, promotedType)); } else {