diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/ClassImplemtingInterfaceMethodsThroughBaseClass4.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/ClassImplemtingInterfaceMethodsThroughBaseClass4.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/ClassImplemtingInterfaceMethodsThroughBaseClass4.cs b/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/ClassImplemtingInterfaceMethodsThroughBaseClass4.cs new file mode 100644 index 000000000..7a01c07ac --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/ClassImplemtingInterfaceMethodsThroughBaseClass4.cs @@ -0,0 +1,28 @@ +using Mono.Linker.Tests.Cases.Expectations.Assertions; + +namespace Mono.Linker.Tests.Cases.Inheritance.Interfaces.OnReferenceType { + class ClassImplemtingInterfaceMethodsThroughBaseClass4 { + public static void Main () + { + new A ().Foo (); + } + + interface IFoo { + void Foo (); + } + + [KeptMember (".ctor()")] + class B { + [Kept] + public void Foo () + { + } + } + + [KeptMember (".ctor()")] + [KeptBaseType (typeof (B))] + class A : B, IFoo { + //my IFoo.Foo() is actually implemented by B which doesn't know about it. + } + } +} |