Skip to content

Variant static interface dispatch behaves incorrectly on Native AOT #88690

Closed

Description

@davidwrighton

Description

New test added in #88639 fails on Native AOT

Reproduction Steps

Run the src/tests/Loader/classloader/StaticVirtualMethods/InterfaceVariance/ComplexHierarchyPositive.csproj test with NativeAOT.

Expected behavior

Test passes

Actual behavior

Test fails

Regression?

No

Known Workarounds

No response

Configuration

No response

Other information

No response

Activity

  1. ghost added
    untriaged
    on Jul 11, 2023
  2. added this to the 9.0.0 milestone on Jul 19, 2023
  3. ghost removed
    untriaged
    on Jul 19, 2023
  4. modified the milestones: 9.0.0, 10.0.0 on Jun 28, 2024
  5. MichalStrehovsky commented on Aug 6, 2025

    @MichalStrehovsky
    Member

    The test is testing both static virtual and instance virtuals. Instance virtuals fail the same way. It's not shocking since we use the same algorithm. The test is also disabled on Mono. We likely had the bug since .NET Native times (the instance method flavor of it). This can move to the Future milestone.

  6. modified the milestones: 10.0.0, Future on Aug 6, 2025
  7. added
    in-pr
    on Mar 9, 2026
  8. locked and limited conversation to collaborators on Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NativeAOT-coreclrin-pr

    Type

    No type

    Projects

    • Status
      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions