diff options
Diffstat (limited to 'linker/Tests/Mono.Linker.Tests.Cases/Generics/MethodWithParameterWhichHasGenericParametersAndOverrideUsesADifferentNameForGenericParameterNestedCase2.cs')
-rw-r--r-- | linker/Tests/Mono.Linker.Tests.Cases/Generics/MethodWithParameterWhichHasGenericParametersAndOverrideUsesADifferentNameForGenericParameterNestedCase2.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/linker/Tests/Mono.Linker.Tests.Cases/Generics/MethodWithParameterWhichHasGenericParametersAndOverrideUsesADifferentNameForGenericParameterNestedCase2.cs b/linker/Tests/Mono.Linker.Tests.Cases/Generics/MethodWithParameterWhichHasGenericParametersAndOverrideUsesADifferentNameForGenericParameterNestedCase2.cs index 888e4278d..f6e1370a3 100644 --- a/linker/Tests/Mono.Linker.Tests.Cases/Generics/MethodWithParameterWhichHasGenericParametersAndOverrideUsesADifferentNameForGenericParameterNestedCase2.cs +++ b/linker/Tests/Mono.Linker.Tests.Cases/Generics/MethodWithParameterWhichHasGenericParametersAndOverrideUsesADifferentNameForGenericParameterNestedCase2.cs @@ -1,4 +1,5 @@ -using Mono.Linker.Tests.Cases.Expectations.Assertions; +using System.Collections.Generic; +using Mono.Linker.Tests.Cases.Expectations.Assertions; namespace Mono.Linker.Tests.Cases.Generics { class MethodWithParameterWhichHasGenericParametersAndOverrideUsesADifferentNameForGenericParameterNestedCase2 { @@ -14,7 +15,7 @@ namespace Mono.Linker.Tests.Cases.Generics { [KeptMember (".ctor()")] public abstract class Nested<T1, T2, T3> { [Kept] - public abstract TResult1 Method<TResult1> (System.Func<TSource, TResult1> arg); + public abstract TResult1 Method<TResult1> (IDictionary<TSource, TResult1> arg); } } @@ -22,9 +23,9 @@ namespace Mono.Linker.Tests.Cases.Generics { [KeptBaseType (typeof (Base<>.Nested<,,>), "TResult1", typeof (int), typeof (int), typeof (string))] public class Derived<TSource, TResult1> : Base<TResult1>.Nested<int, int, string> { [Kept] - public override TResult2 Method<TResult2> (System.Func<TResult1, TResult2> arg) + public override TResult2 Method<TResult2> (IDictionary<TResult1, TResult2> arg) { - return arg (default (TResult1)); + return default (TResult2); } } } |