Skip to content

Conversation

@stbau04
Copy link
Contributor

@stbau04 stbau04 commented Sep 19, 2025

Fixes #60742
New pr instead of #80267 as Github apparently behaves different in comparison to Bitbucket when a branch with pr is deleted and pushed again

@stbau04 stbau04 requested a review from a team as a code owner September 19, 2025 19:28
@stbau04 stbau04 marked this pull request as draft September 19, 2025 19:28
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Sep 19, 2025
@333fred
Copy link
Member

333fred commented Sep 19, 2025

@stbau04 in general, please avoid force pushing to PRs in roslyn. It breaks our ability to incrementally review changes. We will squash your changes at the end anyway.

@stbau04
Copy link
Contributor Author

stbau04 commented Sep 20, 2025

Noted, i'll not do that again

@stbau04 stbau04 marked this pull request as ready for review September 20, 2025 20:49
stbau04 and others added 5 commits September 23, 2025 11:59
…Helpers.cs

Co-authored-by: Fred Silberberg <fred@silberberg.xyz>
# Conflicts:
#	src/Compilers/CSharp/Portable/Errors/ErrorCode.cs
#	src/Compilers/CSharp/Portable/Errors/ErrorFacts.cs
@stbau04 stbau04 requested a review from 333fred September 23, 2025 11:52
Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dotnet/roslyn-compiler for a second review

@333fred 333fred requested a review from RikkiGibson September 23, 2025 15:57
@RikkiGibson
Copy link
Member

Taking a look today, sorry I missed the notification.

// UnavailableClass[] CSharpErrors.InterfaceMethods.ReturnType2() { return null; }
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").WithLocation(5, 5),
// (5,54): error CS0539: 'C.ReturnType2()' in explicit interface declaration is not a member of interface
// (5,54): error CS9334: 'C.ReturnType2()': return type must be 'UnavailableClass[]' to match implemented member 'InterfaceMethods.ReturnType2()'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you wish, you could consider opening a follow up PR after this one, to avoid reporting a "bad implementation" error, when the implementation signature already has errors, which I believe is called out in the "CONSIDER" comment in the implementation.

@RikkiGibson RikkiGibson merged commit ced1f68 into dotnet:main Sep 26, 2025
24 checks passed
@RikkiGibson
Copy link
Member

Thanks for the contribution!

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

Labels

Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Friendlier error message on an explicit implementation when the return type is wrong

3 participants