Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: Should static interface members without implementation be allowed? #3829

Closed
ScottKane opened this issue Aug 30, 2020 · 2 comments
Closed

Comments

@ScottKane
Copy link

Doing this could then force opt in static implementation enforcement so that the derived class must implement the static member as static.

interface IA
{
    static void M();
}
class Derived: IA
{
    public static void M() { }
}
@DaZombieKiller
Copy link
Contributor

You're looking for #164.

@333fred
Copy link
Member

333fred commented Aug 31, 2020

I would say it's a duplicate of #110 (type classes), not necessarily shapes. We also discussed this in LDM a couple months ago: https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-06-29.md. Closing this out, please redirect discussion to one of the linked places :).

@333fred 333fred closed this as completed Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants