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

Completion list for explicit interface implementation doesn't include checked keyword for checked user-defined operators #60215

Closed
AlekseyTs opened this issue Mar 16, 2022 · 0 comments · Fixed by #60715

Comments

@AlekseyTs
Copy link
Contributor

interface I1<T> where T : I1<T>
{
    abstract static T operator checked -(T x);
    abstract static T operator -(T x);

    abstract static T operator checked +(T x, T y);
    abstract static T operator +(T x, T y);

    abstract static explicit operator checked string(T x);
    abstract static explicit operator string(T x);
}


class C3 : I1<C3>
{
    static C3 I1<C3>.
}

Observed:
image

Note that, when the highlighted entry is chosen, the checked modifier is not included into the added code.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Mar 16, 2022
@jinujoseph jinujoseph added Bug and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 22, 2022
@jinujoseph jinujoseph added this to the 17.3 milestone Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants