Closed 7sharp9 closed 6 years ago
Could it be related to https://github.com/fsprojects/FSharp.TypeProviders.SDK/issues/206 ?
Possibly @sergey-tihon , its similar in that its a generic method with a provided operand, try the fix its pretty easy to apply.
I was using something like:
(fun field ->
handlers
|> List.fold
(fun acc (pos, handler) ->
Expr.IfThenElse(
samePosition field pos,
handler field,
acc))
(Expr.Value(())))
This was fixed, at least the fix mentioned above is in the code
Description
I have a piece of quotation code where this line is invoked:
This stems from a call to: convMethodRefToTgt (m: MethodInfo)`
Repro steps
Write a quotation where there is a
Expr.ForLoop
that also involvesCall
andLet
withProvidedTypes
as the callee for the quotation backing code.Expected behavior
No exception
Actual behavior
Exception:
Known workarounds
None
I can provide a patch for this in a little while.