Skip to content

Commit

Permalink
Added method and type info in convMethodRef exception (#5416)
Browse files Browse the repository at this point in the history
  • Loading branch information
Horusiath authored and KevinRansom committed Sep 6, 2018
1 parent d97c797 commit 85a4755
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/absil/ilreflect.fs
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,9 @@ let queryableTypeGetMethodBySearch cenv emEnv parentT (mref:ILMethodRef) =
res

match List.tryFind select methInfos with
| None -> failwith "convMethodRef: could not bind to method"
| None ->
let methNames = methInfos |> List.map (fun m -> m.Name) |> List.distinct
failwithf "convMethodRef: could not bind to method '%A' of type '%s'" (System.String.Join(", ", methNames)) parentT.AssemblyQualifiedName
| Some methInfo -> methInfo (* return MethodInfo for (generic) type's (generic) method *)

let queryableTypeGetMethod cenv emEnv parentT (mref:ILMethodRef) =
Expand Down

0 comments on commit 85a4755

Please sign in to comment.