Skip to content
Browse files

Fix compilation errors in Linq.fs for wp7 target

  • Loading branch information...
1 parent 3277a7d commit 88051719e08c6904b91c27694f76ae140ab8c984 @ovatsus ovatsus committed Feb 18, 2013
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/fsharp/FSharp.Core/Linq.fs
View
9 src/fsharp/FSharp.Core/Linq.fs
@@ -781,7 +781,10 @@ module LeafExpressionConverter =
// provides no other way to evaluate the expression.
//
// REVIEW: It is possible it is just better to interpret the expression in many common cases, e.g. property-gets, values etc.
- let EvaluateQuotation (e: Microsoft.FSharp.Quotations.Expr) =
+ let EvaluateQuotation (e: Microsoft.FSharp.Quotations.Expr) : obj =
+#if FX_NO_QUOTATIONS_COMPILE
+ raise (new NotSupportedException())
+#else
match e with
| Value (obj,_) -> obj
| _ ->
@@ -793,7 +796,7 @@ module LeafExpressionConverter =
d.DynamicInvoke [| box () |]
with :? System.Reflection.TargetInvocationException as exn ->
raise exn.InnerException
-
+#endif
#endif
-
+

0 comments on commit 8805171

Please sign in to comment.
Something went wrong with that request. Please try again.