diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/ClassImplementingInterfaceMethodsNested2.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/ClassImplementingInterfaceMethodsNested2.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/ClassImplementingInterfaceMethodsNested2.cs b/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/ClassImplementingInterfaceMethodsNested2.cs new file mode 100644 index 000000000..aba1ed062 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnReferenceType/ClassImplementingInterfaceMethodsNested2.cs @@ -0,0 +1,39 @@ +using Mono.Linker.Tests.Cases.Expectations.Assertions; + +namespace Mono.Linker.Tests.Cases.Inheritance.Interfaces.OnReferenceType { + public class ClassImplementingInterfaceMethodsNested2 { + public static void Main () + { + IBar b = new A (); + IFoo f = b; + f.Foo (); + } + + [Kept] + interface IFoo { + [Kept] + void Foo (); + } + + [Kept] + [KeptInterface (typeof (IFoo))] + interface IBar : IFoo { + void Bar (); + } + + [Kept] + [KeptMember (".ctor()")] + [KeptInterface (typeof (IBar))] + [KeptInterface (typeof (IFoo))] + class A : IBar { + [Kept] + public void Foo () + { + } + + public void Bar () + { + } + } + } +}
\ No newline at end of file |