For an inline function one could create a constraint like:
let inline implicit arg =
( ^a : (static member op_Implicit : ^b -> ^a) arg)
requiring the given operator or member on the arguments. Is there a way to match based on somthing similar?
I want to create an active pattern where any argument that's passed to the method that matches the constraint of an inlined function as the above triggers that function and everything else ends as part of some error management.