[sgen] Reenable gc-altstack test
[mono.git] / mcs / class / dlr / Runtime / Microsoft.Scripting.Core / Ast / LambdaExpression.cs
index 4d1c23567337821fab76fb80fdc5d1feecf47af0..050330c0b4d2d1798ce4d8d7cdfa68eb72b86188 100644 (file)
@@ -137,6 +137,13 @@ namespace System.Linq.Expressions {
             return LambdaCompiler.Compile(this, debugInfoGenerator);
         }
 
+#if NETSTANDARD
+        public Delegate Compile(bool preferInterpretation) {
+            // TODO: add logic for preferInterpretation
+            return Compile();
+        }
+#endif
+
 #if FEATURE_REFEMIT
         /// <summary>
         /// Compiles the lambda into a method definition.
@@ -198,6 +205,13 @@ namespace System.Linq.Expressions {
             return (TDelegate)(object)LambdaCompiler.Compile(this, debugInfoGenerator);
         }
 
+#if NETSTANDARD
+        public new TDelegate Compile(bool preferInterpretation) {
+            // TODO: add logic for preferInterpretation
+            return Compile();
+        }
+#endif
+
         /// <summary>
         /// Creates a new expression that is like this one, but using the
         /// supplied children. If all of the children are the same, it will