Given:
let inline example1 a b = fun x -> a + b + x
The follow evaluates without error:
<@ (example1 3 2) 1
@>.Eval()
However, given:
let inline example2 a b = fun x -> x >= a - b && x <= a + b
The following:
<@ (example2 3 2) 1
@>.Eval()
produces an error message:
System.NotSupportedException: Specified method is not supported.
at
Microsoft.FSharp.Linq.QuotationEvaluation.CompileImpl@840.Invoke(Unit unitVar0)
at Microsoft.FSharp.Linq.QuotationEvaluation.Expr
1.Eval[T](FSharpExpr1 )
at
.$FSI_0023.main@()
Stopped due to error