Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Linker warns on method which always throws but has annotated return value #2025

Closed

Description

@vitek-karas
[return: DynamicallyAccessedMembers(PublicMethods)]
Type TestMethod()
{
    throw NotImplementedException();
}

This will generate IL2063 because scanner will not find any return value for the method and thus we'll handle it as "unknown" value.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions