Skip to content

Can extension types declare abstract members? #3283

@srawlins

Description

@srawlins

I mean, I'm pretty sure the answer is "no," but I don't see this explicitly specified, and it probably should be.

FWIW, the static extension methods spec explicitly states:

It is a compile-time error if an extension [...] declares an abstract member.

So I think it's worth it to specify this, add tests, etc.

(Aaand I think native and external methods should be allowed?)

CC @eernstg

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions