Skip to content

Unhelpful CS0119 error when unable to find a static abstract method to resolve #61486

@Rekkonnect

Description

@Rekkonnect

Version Used: 17.3.0 Preview 1.1

Steps to Reproduce:

  1. Declare a method that has access to a type parameter (either from the containing type, or the method itself)
  2. Try to use an unavailable static abstract method for the given type parameter

Expected Behavior: A specific error about the unavailability of the method.

Actual Behavior: An unhelpful CS0119 error, without hinting the availability of a feature enabling calling static abstract methods from type parameter arguments.

Screenshots:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions