Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnValueType/StructImplementingInterfaceMethodsNested2.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnValueType/StructImplementingInterfaceMethodsNested2.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnValueType/StructImplementingInterfaceMethodsNested2.cs b/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnValueType/StructImplementingInterfaceMethodsNested2.cs
new file mode 100644
index 000000000..f7a701dc1
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnValueType/StructImplementingInterfaceMethodsNested2.cs
@@ -0,0 +1,38 @@
+using Mono.Linker.Tests.Cases.Expectations.Assertions;
+
+namespace Mono.Linker.Tests.Cases.Inheritance.Interfaces.OnValueType {
+ public class StructImplementingInterfaceMethodsNested2 {
+ 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]
+ [KeptInterface (typeof (IBar))]
+ [KeptInterface (typeof (IFoo))]
+ struct A : IBar {
+ [Kept]
+ public void Foo ()
+ {
+ }
+
+ public void Bar ()
+ {
+ }
+ }
+ }
+} \ No newline at end of file