From 6e3b0f2298069ffd16a397d7b3808f238718046c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Thu, 14 Mar 2019 13:43:09 +0100 Subject: [PATCH] Fix InterfaceTest.Bug10866 The linker got smarter with https://github.com/mono/linker/pull/394 so we now remove B.Bar() since it's not used. --- tests/linker/ios/link all/InterfacesTest.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/linker/ios/link all/InterfacesTest.cs b/tests/linker/ios/link all/InterfacesTest.cs index 37490a73c2..22514c8692 100644 --- a/tests/linker/ios/link all/InterfacesTest.cs +++ b/tests/linker/ios/link all/InterfacesTest.cs @@ -90,10 +90,9 @@ namespace LinkAll.Interfaces { // I::Bar is used in F so everyone implementing I needs Bar Assert.NotNull (type_i.GetMethod ("Bar", BindingFlags.Instance | BindingFlags.Public), "I::Bar"); - // Foo and Bar are never used on B - so Foo can be removed + // Foo and Bar are never used on B - so they can be removed Assert.Null (type_b.GetMethod ("Foo", BindingFlags.Instance | BindingFlags.Public), "B::Foo"); - // but Bar cannot since B implements I - Assert.NotNull (type_b.GetMethod ("Bar", BindingFlags.Instance | BindingFlags.Public), "B::Bar"); + Assert.Null (type_b.GetMethod ("Bar", BindingFlags.Instance | BindingFlags.Public), "B::Bar"); } [DllImport ("/usr/lib/system/libsystem_dnssd.dylib")]