In a new console application, simply pasting the following code results in the exception "The parameter is not a recognized method name."
- Does the following code work on your installation?
- Joker: Do you know why it doesn't work on mine?
Looking at the definition of the active SpecificCall template defined in the compiler, I find:
[<CompiledName("SpecificCallPattern")>] let (|SpecificCall|_|) templateParameter = // Note: precomputation match templateParameter with | (Lambdas(_,Call(_,minfo1,_)) | Call(_,minfo1,_)) -> let isg1 = minfo1.IsGenericMethod let gmd = if isg1 then minfo1.GetGenericMethodDefinition() else null // end-of-precomputation (fun tm -> match tm with | Call(obj,minfo2,args)
source share