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