diff options
Diffstat (limited to 'linker/Mono.Linker.Steps/TypeMapStep.cs')
-rw-r--r-- | linker/Mono.Linker.Steps/TypeMapStep.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linker/Mono.Linker.Steps/TypeMapStep.cs b/linker/Mono.Linker.Steps/TypeMapStep.cs index 118a19f29..64a0c1dd1 100644 --- a/linker/Mono.Linker.Steps/TypeMapStep.cs +++ b/linker/Mono.Linker.Steps/TypeMapStep.cs @@ -215,6 +215,9 @@ namespace Mono.Linker.Steps { if (cp.Count != mp.Count) return false; + if (candidate.GenericParameters.Count != method.GenericParameters.Count) + return false; + for (int i = 0; i < cp.Count; i++) { if (!TypeMatch (cp [i].ParameterType, mp [i].ParameterType, ref genericParameters)) return false; |