Skip to content

Unable to use the new extension members #489

Description

@hez2010

Version

0.8.0

What happened?

extension(string)
{
    public static string Hello => "Hello!";
}

Result:

(1,1): error CS9283: Extensions must be declared in a top-level, non-generic, static class.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions