Update Reference Sources to .NET Framework 4.6.1
[mono.git] / mcs / class / referencesource / System.Core / Microsoft / Scripting / Compiler / LambdaCompiler.Unary.cs
index e7e9dc172542250e671c1dcb931cb339164a7f0d..cb8ef7da1664903aca8989163ec517cb451d6abc 100644 (file)
@@ -291,12 +291,12 @@ namespace System.Linq.Expressions.Compiler {
                 // if it is null, and then call the conversion.
                 //
                 // We cannot fix this in C# but there is no reason why we need to
-                // propagate this 
-
-
-
-
-
+                // propagate this bug into the expression tree API.  Unfortunately
+                // this means that when the C# compiler generates the lambda
+                // (int? i)=>(MyClass)i, we will get different results for converting
+                // that lambda to a delegate directly and converting that lambda to
+                // an expression tree and then compiling it.  We can live with this
+                // discrepancy however.
 
                 if (node.IsLifted && (!node.Type.IsValueType || !node.Operand.Type.IsValueType)) {
                     ParameterInfo[] pis = node.Method.GetParametersCached();