Author: | mrvoorhe |
---|---|
Assignees: | - |
Labels: | `untriaged`, `area-NativeAOT-coreclr` |
Milestone: | - |
Open mrvoorhe opened 7 months ago
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.
Author: | mrvoorhe |
---|---|
Assignees: | - |
Labels: | `untriaged`, `area-NativeAOT-coreclr` |
Milestone: | - |
Here's another test that is similar. I don't know if it's a separate issue or not. It reuses some of the same interfaces that are in the repro project.
AdderImplicit<object> t = default(AdderImplicit<object>);
var check1 = Check<AdderImplicit<object>, IGen1<object>>(t);
Console.WriteLine($"Check1 = {check1}");
t = default(AdderImplicit<object>);
var check2 = Check<AdderImplicit<object>, IGen2<object>>(t);
t = default(AdderImplicit<object>);
Console.WriteLine($"Check2 = {check2}");
var check3 = Check<AdderImplicit<object>, IGen3<object>>(t);
Console.WriteLine($"Check3 = {check3}");
var tt = default(AdderImplicit<Atom>);
var check4 = Check<AdderImplicit<Atom>, Atom>(tt);
Console.WriteLine($"Check4 = {check4}");
struct AdderImplicit<T> : IAdder<IGen1<T>>, IAdder<IGen2<T>>, IAdder<IGen3<T>>, IAdder<Atom>
{
private int _field;
public int Add(int p)
{
_field += p;
return _field;
}
public int PlusPlus()
{
return Add(1);
}
}
Likely dup of https://github.com/dotnet/runtimelab/issues/1431 (see blocked tests in issues.targets).
Description
Here's another of our constrained call tests that failed with nativeaot.
Reproduction Steps
1) Unzip the attached file ConsoleApp45.zip
2) Run dotnet publish 3) Run .\ConsoleApp45\bin\Release\net8.0\win-x64\publish\ConsoleApp45.exe
Expected behavior
Actual behavior
Regression?
I suspect it probably happened with the net7 nativeaot but I don't know for certain. I didn't explicitly check this test back when I was testing net7 nativeaot.
.NET Core is fine. Mono and .NET Framework are also fine.
Known Workarounds
No response
Configuration
No response
Other information
No response