You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mono used to return `true` for these three cases (see System.Reflection.Tests.TypeTests.IsAssignableFrom tests):
```csharp
using System.Reflection;
using Xunit;
namespace ConsoleApp
{
public static class Program
{
static void Main(string[] args)
{
Assert.False(typeof(TI_Interface1[]).GetTypeInfo().IsAssignableFrom(
typeof(TI_StructWithInterface[]).GetTypeInfo()));
Assert.False(typeof(int?[]).GetTypeInfo().IsAssignableFrom(
typeof(int[]).GetTypeInfo()));
Assert.False(typeof(int[]).GetTypeInfo().IsAssignableFrom(
typeof(int?[]).GetTypeInfo()));
}
}
public interface TI_Interface1 { }
public struct TI_StructWithInterface : TI_Interface1 { }
}
```
Fixes#10848Fixes#15080
Unrelated System.Reflection.MetadataLoadContext.Tests tests that don't fail anymore:
Close#15351Close#15348Close#15347Close#15346Close#15345Close#15343Close#15342Close#15341Close#15338Close#15337Close#15336
The test currently fails with:
Determine why and make the test pass.
The text was updated successfully, but these errors were encountered: