Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Fix compilation errors in Linq.fs for wp7 target
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Guerra committed Feb 18, 2013
1 parent 3277a7d commit 8805171
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/fsharp/FSharp.Core/Linq.fs
Expand Up @@ -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
| _ ->
Expand All @@ -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.